diff --git a/src/contexts/user/dispatcher.ts b/src/contexts/user/dispatcher.ts index e57c738..4b359ec 100644 --- a/src/contexts/user/dispatcher.ts +++ b/src/contexts/user/dispatcher.ts @@ -10,6 +10,7 @@ export const userDispatcher = ( ): User | null => { switch (action.type) { case 'SET_USER': + if (!action.payload) return state; return { ...action.payload, };