Skip to content

Commit

Permalink
Add allowDeletion = true
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Jan 15, 2025
1 parent d8faff6 commit e3b34de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/composables/use_masternode.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export const useMasternode = defineStore('masternode', () => {
const localProposals = ref([]);
watch(
localProposals,
async () => {
async (localProposals) => {
const database = await Database.getInstance();
const account = await database.getAccount();
if (account) {
account.localProposals = toRaw(localProposals.value);
await database.updateAccount(account);
account.localProposals = toRaw(localProposals);
await database.updateAccount(account, true);
}
},
{
Expand Down

0 comments on commit e3b34de

Please sign in to comment.