diff options
author | Michael Hunteman <michael@huntm.net> | 2024-03-01 07:44:28 -0800 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-03-01 07:44:28 -0800 |
commit | 2b3d32a641da19c9d807f1877efcbe1a130c5e23 (patch) | |
tree | 040b0bdced188912e3fbbeafdb3d2cbbc784676f /src/features/auth/GuestLogin.tsx | |
parent | fa1409d205479e9943f7b7db96a4b56ff1d29d7d (diff) |
Use guest for login and RSVP update
Diffstat (limited to 'src/features/auth/GuestLogin.tsx')
-rw-r--r-- | src/features/auth/GuestLogin.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/features/auth/GuestLogin.tsx b/src/features/auth/GuestLogin.tsx index 8585e61..61a8fa1 100644 --- a/src/features/auth/GuestLogin.tsx +++ b/src/features/auth/GuestLogin.tsx @@ -20,8 +20,7 @@ function GuestLogin() { const onSubmit = async (data: LoginRequest) => { try { - const user = await login(data).unwrap(); - dispatch(setCredentials(user)); + dispatch(setCredentials(await login(data).unwrap())); navigate('/rsvp'); } catch (e) { console.log(e); |