fix(create): block if no signers

This commit is contained in:
enes 2024-08-30 13:27:10 +02:00
parent bee566424d
commit 15aaef948d

View File

@ -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
} }