Skip to content

Commit 21e6645

Browse files
committed
Catch unauthorized error
1 parent c2e0d74 commit 21e6645

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/landing/Team.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const Team = ({ urlToken, user, login, client, history }) => {
1515
)
1616
} else {
1717
// todo spinner
18-
await client.mutate({ mutation: JOIN_TEAM, variables: { urlToken } })
18+
await client
19+
.mutate({ mutation: JOIN_TEAM, variables: { urlToken } })
20+
.catch()
1921
history.push('/welcome')
2022
}
2123
attemptingToClaim = false

0 commit comments

Comments
 (0)