Skip to content

Commit 3c848ac

Browse files
committed
fixup! fix(shared): prevent stale closures in useReverification hook
1 parent d4495a0 commit 3c848ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/react/hooks/useReverification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CLERK_API_REVERIFICATION_ERROR_CODE = 'session_reverification_required';
1414
async function resolveResult<T>(result: Promise<T> | T): Promise<T | ReturnType<typeof reverificationError>> {
1515
try {
1616
const r = await result;
17-
if (typeof Response !== 'undefined' && r instanceof Response) {
17+
if (r instanceof Response) {
1818
return r.json();
1919
}
2020
return r;

0 commit comments

Comments
 (0)