summaryrefslogtreecommitdiff
path: root/src/features/auth/GuestLogin.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/auth/GuestLogin.tsx')
-rw-r--r--src/features/auth/GuestLogin.tsx3
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);