Skip to content

Commit 203592d

Browse files
Update app/utils/auth.server.ts
Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 963b990 commit 203592d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/auth.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export async function checkCommonPassword(password: string) {
280280
const data = await res.text()
281281
return data.split('/\r?\n/').some((line) => line.includes(suffix))
282282
} catch (error) {
283-
if (error instanceof DOMException && error.name === 'AbortError') {
283+
if (error instanceof Error && error.name === 'AbortError') {
284284
console.warn('Password check timed out')
285285
}
286286
return false

0 commit comments

Comments
 (0)