fix login & logout again

This commit is contained in:
Muhammad Fajar
2022-12-07 02:46:24 +07:00
parent 2bac2bfeb7
commit e13b99a34a
3 changed files with 4 additions and 4 deletions

View File

@@ -144,9 +144,6 @@ function AuthProvider({ children }: AuthProviderProps) {
const logout = () => {
setSession(null);
localStorage.removeItem('loginOrVerifyCode');
localStorage.removeItem('emailOrPhone');
localStorage.removeItem('emailOrPhoneForm');
dispatch({ type: Types.Logout });
};