[Vuejs]-How to resolve circular dependencies: Vuex requiring js modules that rely on Vuex?

0👍

Please check this code. you can use that:

[types.order.mutations.UPDATE_ORDERS_LIST]: (state, payload) => {
state.ordersList.find(el => {
if (el.reference_number === payload.reference_number) {
el.status = payload.status;
el.status_locale = payload.status_locale;
el.is_cancelable = payload.is_cancelable;
}
});
}
[types.operations.mutations.MUTATE_EXCHANGE_CURRENCIES]: (state, payload) => {
let data = [];
payload.wallets.forEach(elem => {
if (elem.is_change_active && elem.currency.iso !== "IRR") {
data.push(elem);
}
});
state.exchangeCurrencies = data;
}`enter code here`

Leave a comment