Commit 8ace5183 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

stop destructuring merkle drop response object (#1338)

stop destructuring merkle drop response object
Co-authored-by: default avatarJordan Frankfurt <layup-entropy@protonmail.com>
parent 67c776c9
......@@ -37,7 +37,7 @@ function fetchClaim(account: string, chainId: ChainId): Promise<UserClaimData |
},
method: 'POST'
})
.then(({ ok, json }) => (ok ? json() : console.log(`No claim for account ${formatted} on chain ID ${chainId}`)))
.then(res => (res.ok ? res.json() : console.log(`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