Skip to content

Commit b72d241

Browse files
committedOct 28, 2024··
refactor(web): revert-fetch-with-auth-function-change
1 parent 02eb9b2 commit b72d241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎web/src/context/AtlasProvider.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ const AtlasProvider: React.FC<{ children?: React.ReactNode }> = ({ children }) =
156156
return !isUndefined(user.email);
157157
}, [user]);
158158

159-
function fetchWithAuthErrorHandling<T>(request: () => Promise<T>): Promise<T> {
159+
async function fetchWithAuthErrorHandling<T>(request: () => Promise<T>): Promise<T> {
160160
try {
161-
return request();
161+
return await request();
162162
} catch (error) {
163163
if (
164164
error instanceof AuthorizationError ||

0 commit comments

Comments
 (0)
Please sign in to comment.