diff options
author | Michael Hunteman <michael@huntm.net> | 2024-04-28 08:19:04 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-04-28 08:19:04 -0700 |
commit | 53851a49c8cd6cb7a6ff2517c9193bd2fd552062 (patch) | |
tree | 7cb41903ad541c661320e36fd63b96c6a8997ba4 /src/features | |
parent | 1324f5f2a5dcba40d44e392d75ff5966264e8d58 (diff) |
Update guest interface
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/auth/authSlice.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/features/auth/authSlice.ts b/src/features/auth/authSlice.ts index 5eccd65..bff2bdd 100644 --- a/src/features/auth/authSlice.ts +++ b/src/features/auth/authSlice.ts @@ -3,13 +3,13 @@ import type { RootState } from '../../store'; import type { Guest } from '../../apiSlice'; type AuthState = { - guest: Guest | null; - token: string | null; + guest?: Guest; + token?: string; }; const authSlice = createSlice({ name: 'auth', - initialState: { guest: null, token: null } as AuthState, + initialState: { guest: undefined, token: undefined } as AuthState, reducers: { setCredentials: (state, action) => { const { guest, token } = action.payload; |