We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02eb9b2 commit b72d241Copy full SHA for b72d241
web/src/context/AtlasProvider.tsx
@@ -156,9 +156,9 @@ const AtlasProvider: React.FC<{ children?: React.ReactNode }> = ({ children }) =
156
return !isUndefined(user.email);
157
}, [user]);
158
159
- function fetchWithAuthErrorHandling<T>(request: () => Promise<T>): Promise<T> {
+ async function fetchWithAuthErrorHandling<T>(request: () => Promise<T>): Promise<T> {
160
try {
161
- return request();
+ return await request();
162
} catch (error) {
163
if (
164
error instanceof AuthorizationError ||
0 commit comments