Skip to content

Commit

Permalink
🎨 server: remove unnecessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Oct 15, 2024
1 parent c453357 commit 2fcf459
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/api/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ export default app
if (!credential.kycId) return c.json("kyc required", 403);
const { data } = await getInquiry(credential.kycId);
if (data.attributes.status !== "approved") return c.json("kyc not approved", 403);
if (credential.cards.length > 0) {
return c.json("card already exists", 400);
}
if (credential.cards.length > 0) return c.json("card already exists", 400);
const phone = parsePhoneNumberWithError(
data.attributes["phone-number"].startsWith("+")
? data.attributes["phone-number"]
Expand Down

0 comments on commit 2fcf459

Please sign in to comment.