Skip to content

Commit

Permalink
Merge pull request #121 from PotLock/bug/fix-challange
Browse files Browse the repository at this point in the history
fix challange button
  • Loading branch information
M-Rb3 authored May 22, 2024
2 parents 02e8408 + 3510308 commit 4578798
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/Pot/components/ChallengeModal/ChallengeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ const ChallengeModal = ({ onClose, existingChallengeForUser }: any) => {
const { challengeReason, challengeReasonError } = state;

const handleCancelChallenge = () => {
onClose();
State.update({ challengeReason: "", challengeReasonError: "" });
onClose();
};

const handleSubmitChallenge = () => {
PotSDK.challengePayouts(potId, challengeReason);
onClose();
};

const MAX_CHALLENGE_TEXT_LENGTH = 1000;
Expand Down

0 comments on commit 4578798

Please sign in to comment.