added logout functions to clear store

This commit is contained in:
2021-07-27 16:29:33 +01:00
parent d55b42a5ab
commit f3fcef69bc
5 changed files with 102 additions and 24 deletions
+6
View File
@@ -15,3 +15,9 @@ export const setAccountDetails = (accountDetails) => (dispatch) => {
accountDetails: accountDetails,
});
};
export const setLogout = () => (dispatch) => {
return dispatch({
type: "USER_LOGOUT",
});
};