Skip to content

Commit

Permalink
Add await for checkCurrent user
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbouslog committed Jun 14, 2024
1 parent b8ad896 commit 8c7247a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SWROptions = {
}

async function fetchUserProjectPreferences() {
const user = auth.checkCurrent()
const user = await auth.checkCurrent()
const token = await auth.checkBearerToken()
const authorization = `Bearer ${token}`
try {
Expand Down

0 comments on commit 8c7247a

Please sign in to comment.