Skip to content

Commit 8a828b6

Browse files
committed
Fix lint warnings in user context
1 parent 401a73c commit 8a828b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/contexts/UserContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export const UserProvider: React.FC = (props) => {
5151
const signOut = async () => {
5252
await API.logout()
5353
// Tell SWR to invalidate the cache for the user endpoint
54-
mutate("/api/v2/users/me")
55-
router.push({
54+
await mutate("/api/v2/users/me")
55+
await router.push({
5656
pathname: "/login",
5757
query: {
5858
redirect: router.asPath,

0 commit comments

Comments
 (0)