Dont lower threshold if owner amount is the same as current threshold
This commit is contained in:
parent
2fdc5e05a9
commit
b473d6311f
|
@ -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 (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue