diff --git a/governance/xc-admin/packages/xc-admin-frontend/components/tabs/UpdatePermissions.tsx b/governance/xc-admin/packages/xc-admin-frontend/components/tabs/UpdatePermissions.tsx index 58422398..56678f0d 100644 --- a/governance/xc-admin/packages/xc-admin-frontend/components/tabs/UpdatePermissions.tsx +++ b/governance/xc-admin/packages/xc-admin-frontend/components/tabs/UpdatePermissions.tsx @@ -139,6 +139,8 @@ const UpdatePermissions = () => { pubkey: securityAuthority, }, ]) + } else { + setData([...DEFAULT_DATA]) } }, [rawConfig]) @@ -228,6 +230,12 @@ const UpdatePermissions = () => { new: newPubkey, }, }) + } else { + // delete account from pubkeyChanges if it exists + if (pubkeyChanges && pubkeyChanges[account]) { + delete pubkeyChanges[account] + } + setPubkeyChanges(pubkeyChanges) } }