Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Feb 24, 2024
1 parent 2d75520 commit 58f97ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pages/api/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ export default async function fund(req: NextApiRequest, res: NextApiResponse) {
const address = fcl.withPrefix(req.body.address) || ""
const token = req.body.token

// Validate Flow address
if (address.length <= 18 && !isValidNetworkAddress(address, publicConfig.network)) {
// Validate Flow Address
if (
address.length <= 18 &&
!isValidNetworkAddress(address, publicConfig.network)
) {
res
.status(400)
.json({errors: [INVALID_NETWORK_ADDRESS_ERROR(publicConfig.network)]})
Expand Down

0 comments on commit 58f97ef

Please sign in to comment.