doc: dispatch EMPTY_BASKET type

This commit is contained in:
Leon Xu
2022-05-07 15:12:52 -07:00
parent 75ec71a467
commit 07cfc6efc2
+4
View File
@@ -47,6 +47,10 @@ function Payment() {
setError(null);
setProcessing(false);
dispatch({
type: "EMPTY_BASKET",
});
history.replace("/orders");
});
};