Skip to content

Commit

Permalink
Merge pull request #432 from privacy-scaling-explorations/feat/preven…
Browse files Browse the repository at this point in the history
…tNaN

feat(general-info-step.tsx): added check to disable continue when NaN
  • Loading branch information
vplasencia authored Mar 8, 2024
2 parents 59aea9c + b3f9603 commit 7b72c6e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ export default function GeneralInfoStep({
!group.type ||
!_groupName ||
(group.type === "off-chain" &&
_fingerprintDuration === undefined) ||
(group.type === "off-chain" && !_groupDescription) ||
(group.type === "off-chain" &&
_groupDescription.length < 10) ||
(_fingerprintDuration === undefined ||
Number.isNaN(_fingerprintDuration) ||
!_groupDescription ||
_groupDescription.length < 10)) ||
_fingerprintDuration < 0
}
variant="solid"
Expand Down

0 comments on commit 7b72c6e

Please sign in to comment.