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:
Jordan Frankfurt 2021-03-18 11:57:13 -04:00 committed by GitHub
parent 67c776c995
commit 8ace518311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)))
}