asdf
This commit is contained in:
@@ -115,7 +115,7 @@ export const AuthProvider = ({ children }) => {
|
||||
dispatch({
|
||||
type: actionTypes.LOGIN_SUCCESS,
|
||||
payload: {
|
||||
user: response.data.user,
|
||||
user: response.data.data.user,
|
||||
token,
|
||||
},
|
||||
});
|
||||
@@ -141,7 +141,7 @@ export const AuthProvider = ({ children }) => {
|
||||
|
||||
dispatch({
|
||||
type: actionTypes.LOGIN_SUCCESS,
|
||||
payload: response.data,
|
||||
payload: response.data.data,
|
||||
});
|
||||
|
||||
toast.success('Welcome back!');
|
||||
@@ -170,7 +170,7 @@ export const AuthProvider = ({ children }) => {
|
||||
|
||||
dispatch({
|
||||
type: actionTypes.LOGIN_SUCCESS,
|
||||
payload: response.data,
|
||||
payload: response.data.data,
|
||||
});
|
||||
|
||||
toast.success('Account created successfully!');
|
||||
|
||||
Reference in New Issue
Block a user