Allow splits admin to be undefined when using an existing cw4-group

This commit is contained in:
Serkan Reis 2023-03-19 21:49:33 +03:00
parent 2e080488e3
commit fbfcdf9cd4

View File

@ -77,7 +77,10 @@ const SplitsInstantiatePage: NextPage = () => {
}
const msg =
cw4Method === 'existing'
? { admin: splitsAdminState.value, group: { cw4_address: cw4GroupAddressState.value } }
? {
admin: splitsAdminState.value ? splitsAdminState.value : undefined,
group: { cw4_address: cw4GroupAddressState.value },
}
: {
admin: splitsAdminState.value ? splitsAdminState.value : undefined,
group: {