Fix endless withdrawals events loading when notes saved locally or in encrypted account

This commit is contained in:
Theo 2023-07-18 23:43:56 -07:00
parent 56c88f9fa8
commit 491bcec983
2 changed files with 9 additions and 1 deletions

@ -72,6 +72,8 @@ export async function _encryptFormatTx({ dispatch, getters, rootGetters }, { eve
}
}
dispatch('loading/disable', {}, { root: true })
return formattingEvents(result)
}

@ -123,7 +123,7 @@ export const mutations = {
}
export const actions = {
async getInstances({ rootGetters }, { txs }) {
async getInstances({ rootGetters, dispatch }, { txs }) {
const eventsInterface = rootGetters['application/eventsInterface']
const instances = txs.reduce((acc, curr) => {
@ -144,6 +144,8 @@ export const actions = {
)
)
dispatch('loading/disable', {}, { root: true })
return instances
},
async checkPendingEncryptedTransaction({ dispatch, getters }) {
@ -224,6 +226,8 @@ export const actions = {
}
}
}
dispatch('loading/disable', {}, { root: true })
},
checkPendingTransaction({ getters, dispatch }) {
const transactions = getters.txs
@ -375,6 +379,8 @@ export const actions = {
}
}
}
dispatch('loading/disable', {}, { root: true })
},
async updateDeposit(
{ getters, commit, dispatch, rootGetters },