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