Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit d1b1b75

Browse files
authored
Merge pull request #1697 from pkarw/develop
Minor offline mode changed
2 parents 2f19e5a + 7960897 commit d1b1b75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/modules/offline-order/helpers/onNetworkStatusChange.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ export function onNetworkStatusChange (store) {
1010
console.log('Are we online: ' + navigator.onLine)
1111

1212
if (typeof navigator !== 'undefined' && navigator.onLine) {
13+
EventBus.$emit('sync/PROCESS_QUEUE', { config: config }) // process checkout queue
14+
store.dispatch('cart/load')
15+
1316
if (config.orders.offline_orders.automatic_transmission_enabled || store.getters['checkout/isThankYouPage']) {
1417
EventBus.$emit('order/PROCESS_QUEUE', { config: config }) // process checkout queue
15-
EventBus.$emit('sync/PROCESS_QUEUE', { config: config }) // process checkout queue
1618
// store.dispatch('cart/serverPull', { forceClientState: false })
17-
store.dispatch('cart/load')
1819
} else {
1920
const ordersToConfirm = []
2021
const storeView = currentStoreView()

0 commit comments

Comments
 (0)