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

View File

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

View File

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