fix(create): block if no signers
This commit is contained in:
parent
bee566424d
commit
15aaef948d
@ -457,10 +457,8 @@ export const CreatePage = () => {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (users.length === 0) {
|
if (!users.some((u) => u.role === UserRole.signer)) {
|
||||||
toast.error(
|
toast.error('No signer is provided. At least add one signer.')
|
||||||
'No signer/viewer is provided. At least add one signer or viewer.'
|
|
||||||
)
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user