Commit 59164f87 authored by Jordan Frankfurt's avatar Jordan Frankfurt

dont destructure response

parent 5d952661
......@@ -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)))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment