Skip to content

Commit 7c74b70

Browse files
committed
fix: validation should fail if token gate address is empty
1 parent c99b0c9 commit 7c74b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/pages/Resolver/NavigationButtons/NextButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const NextButton: React.FC<INextButton> = ({ nextRoute }) => {
2222
if (!disputeData.disputeKitData || disputeData.disputeKitData.type !== "gated") return true;
2323

2424
const gatedData = disputeData.disputeKitData as IGatedDisputeData;
25-
if (!gatedData?.tokenGate?.trim()) return true; // No token address provided, so valid
25+
if (!gatedData?.tokenGate?.trim()) return false; // No token address provided, so invalid
2626

2727
// If token address is provided, it must be validated as valid ERC20
2828
return gatedData.isTokenGateValid === true;

0 commit comments

Comments
 (0)