fix: reset user profile on logout

This commit is contained in:
Lin, Hung-Shin committed 2023-11-22 14:53:41 +08:00
1 parent 89f86fad30
commit e360ebcf53
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ export async function loadUserProfile() {
return store
} catch (err) {
console.error(err)
throw new Error('Failed to load user profile', err)
throw new Error(`Failed to load user profile: ${err.message}`)
}
}