Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
dont destructure response
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Frankfurt authored and Jordan Frankfurt committed Mar 18, 2021
1 parent 5d95266 commit 59164f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/claim/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function fetchClaim(account: string, chainId: ChainId): Promise<UserClaimData |
},
method: 'POST',
})
.then(({ ok, json }) => (ok ? json() : console.debug(`No claim for account ${formatted} on chain ID ${chainId}`)))
.then((res) => (res.ok ? res.json() : console.debug(`No claim for account ${formatted} on chain ID ${chainId}`)))
.catch((error) => console.error('Failed to get claim data', error)))
}

Expand Down

0 comments on commit 59164f8

Please sign in to comment.