Skip to content

Commit

Permalink
Update coming soon with end campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed Jun 19, 2024
1 parent 062becb commit d98e5f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ const Component: React.FC<Props> = ({ className, currentAirdrop }: Props) => {
const buttonType = (() => {
const now = Date.now();
const shouldCheck = currentAirdrop?.start_claim && new Date(currentAirdrop?.start_claim).getTime() < now;
const endCampaign = currentAirdrop?.end && new Date(currentAirdrop?.end).getTime() < now;

if (!shouldCheck) {
if (!shouldCheck && !endCampaign) {
return buttonTypeConst.COMING_SOON;
}

Expand Down

0 comments on commit d98e5f1

Please sign in to comment.