doc: dispatch EMPTY_BASKET type
This commit is contained in:
1 parent
75ec71a467
commit
07cfc6efc2
1 file changed
+4
@@ -47,6 +47,10 @@ function Payment() {
|
|||||||
setError(null);
|
setError(null);
|
||||||
setProcessing(false);
|
setProcessing(false);
|
||||||
|
|
||||||
|
dispatch({
|
||||||
|
type: "EMPTY_BASKET",
|
||||||
|
});
|
||||||
|
|
||||||
history.replace("/orders");
|
history.replace("/orders");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user