mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-18 13:51:20 +00:00
Dont lower threshold if owner amount is the same as current threshold
This commit is contained in:
parent
add406c42b
commit
27cf406181
@ -40,7 +40,8 @@ export const ThresholdForm = ({ onClickBack, onClose, onSubmit, initialValues }:
|
|||||||
const handleSubmit = (values) => {
|
const handleSubmit = (values) => {
|
||||||
onSubmit(values)
|
onSubmit(values)
|
||||||
}
|
}
|
||||||
const defaultThreshold = threshold > 1 ? threshold - 1 : threshold
|
const ownersAmount = owners?.size
|
||||||
|
const defaultThreshold = threshold > 1 && threshold === ownersAmount ? threshold - 1 : threshold
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user