- {validRaffles.length > 0 &&
- validRaffles.slice(0, 2).map((raffle, key) => (
+ {rafflesList.length > 0 &&
+ rafflesList.slice(0, 2).map((raffle, key) => (
= ({
setIsWalletPromptOpen(true);
return;
}
+ if (!address && method !== "Winners") {
+ setIsWalletPromptOpen(true);
+ return;
+ }
setClaimOrEnrollWalletResponse(null);
setMethod(method);
setSelectedRaffleForEnroll(raffle);
},
- [isConnected, setIsWalletPromptOpen],
+ [isConnected, setIsWalletPromptOpen, address],
);
const closeEnrollModal = useCallback(() => {