From 5461e76bc031c823aa7bd285cca36238b24aa186 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 23 Jan 2023 15:31:39 -0800 Subject: [PATCH] fix slight bug in logic --- src/App.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/App.js b/src/App.js index b069528..7028e11 100644 --- a/src/App.js +++ b/src/App.js @@ -195,11 +195,13 @@ function Contract() { )} -
- {JSON.parse(options.claimableTokens).map((tokenId, idx) => ( - - ))} -
+ {options.claimableTokens !== '' && ( +
+ {JSON.parse(options.claimableTokens).map((tokenId, idx) => ( + + ))} +
+ )} {options.totalSupply < options.max && (
@@ -233,7 +235,7 @@ function Contract() {
{options.tokensSet && (
- Tokens have now been specified in the contract. Owners of those tokens can claim the Ether. Congrats to the winners! + Tokens have now been specified in the contract. Owners of those tokens can claim the Ether by clicking the claim buttons above. Congrats to the winners!
)}