stop destructuring merkle drop response object (#1338)
stop destructuring merkle drop response object Co-authored-by: Jordan Frankfurt <layup-entropy@protonmail.com>
This commit is contained in:
parent
67c776c995
commit
8ace518311
@ -37,7 +37,7 @@ function fetchClaim(account: string, chainId: ChainId): Promise<UserClaimData |
|
|||||||
},
|
},
|
||||||
method: 'POST'
|
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)))
|
.catch(error => console.error('Failed to get claim data', error)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user