diff --git a/governance/src/hooks/airdrop/useAirdrop.ts b/governance/src/hooks/airdrop/useAirdrop.ts index cffe4a03..384e9747 100644 --- a/governance/src/hooks/airdrop/useAirdrop.ts +++ b/governance/src/hooks/airdrop/useAirdrop.ts @@ -56,25 +56,30 @@ const getProof = (account: string) => { const proofClaims = Object.keys(proof.claims).reduce((prev, address) => { return { ...prev, - [address.toLowerCase()]: proof.claims[address] - } - }, proof.claims) - proof.claims = proofClaims + [address.toLowerCase()]: proof.claims[address], + }; + }, proof.claims); + proof.claims = proofClaims; const missedProof = isProduction() ? (ProofData2 as AirdropProof) : (ProofTestnetData as AirdropProof); // lowercased all claims - const missedProofClaims = Object.keys(missedProof.claims).reduce((prev, address) => { - return { - ...prev, - [address.toLowerCase()]: missedProof.claims[address] - } - }, missedProof.claims) - missedProof.claims = missedProofClaims - - const isMissedAccount = !Boolean(proof.claims[account.toLowerCase()]) && Boolean(missedProof.claims[account.toLowerCase()]); + const missedProofClaims = Object.keys(missedProof.claims).reduce( + (prev, address) => { + return { + ...prev, + [address.toLowerCase()]: missedProof.claims[address], + }; + }, + missedProof.claims + ); + missedProof.claims = missedProofClaims; + + const isMissedAccount = + !Boolean(proof.claims[account.toLowerCase()]) && + Boolean(missedProof.claims[account.toLowerCase()]); return { merkleProof: isMissedAccount ? missedProof : proof,