Skip to content

Commit

Permalink
fix typo (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjojoex authored Apr 17, 2024
1 parent 6b79d08 commit 5f9632b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/users/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async (req: VercelRequest, res: VercelResponse): Promise<VercelRe
return res.status(400).json({ error: { message } });
}

const sig = signature.startWith("0x") ? signature : `0x${signature}`;
const sig = String(signature).startsWith("0x") ? signature : `0x${signature}`;

if (!isHex(sig)) {
return res.status(400).json({ error: { message: "Invalid signature." } });
Expand Down

0 comments on commit 5f9632b

Please sign in to comment.