Dont lower threshold if owner amount is the same as current threshold

This commit is contained in:
juampibermani 2021-06-07 12:04:03 -03:00
parent 2fdc5e05a9
commit b473d6311f
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ export const ThresholdForm = ({ onClickBack, onClose, onSubmit, initialValues }:
const handleSubmit = (values) => {
onSubmit(values)
}
const defaultThreshold = threshold > 1 ? threshold - 1 : threshold
const ownersAmount = owners?.size
const defaultThreshold = threshold > 1 && threshold === ownersAmount ? threshold - 1 : threshold
return (
<>