Skip to content

Commit

Permalink
fix(PoapReward): don't disable button after minting the last availabl…
Browse files Browse the repository at this point in the history
…e POAP
  • Loading branch information
dovalid committed May 4, 2023
1 parent 286dedd commit b6c2651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const PoapReward = ({ poap, isExpired, isInteractive = true }: Props) => {
const { buttonProps, modalProps } = useMintPoapButton(poap?.id)

const state = useMemo(() => {
if (availableLinks === 0)
if (availableLinks === 0 && !modalProps.response)
return {
tooltipLabel: poapLinks?.total
? "All available POAPs have been minted"
Expand Down

0 comments on commit b6c2651

Please sign in to comment.