Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amitamrutiya committed Jul 1, 2024
1 parent a17b8e6 commit 1c87a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/actions/auth/verify-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function verifyCode(value: verifyCodeType) {
}

const isCodeValid = user.verifyCode === code;
const isCodeExpired = new Date(user.verifyCodeExpiry) > new Date();
const isCodeExpired = new Date(user.verifyCodeExpiry ?? 0) > new Date();

if (isCodeValid && isCodeExpired) {
await db.user.update({
Expand Down

0 comments on commit 1c87a12

Please sign in to comment.