diff --git a/kolibri/core/assets/src/composables/useUserSyncStatus.js b/kolibri/core/assets/src/composables/useUserSyncStatus.js index 9c52e0d4293..328ae3fd325 100644 --- a/kolibri/core/assets/src/composables/useUserSyncStatus.js +++ b/kolibri/core/assets/src/composables/useUserSyncStatus.js @@ -37,7 +37,6 @@ export function pollUserSyncStatusTask() { if (!store.state.core.session.user_id) { return Promise.resolve(); } - return fetchUserSyncStatus({ user: store.state.core.session.user_id }).then(syncData => { if (syncData && syncData[0]) { queued.value = syncData[0].queued; @@ -59,6 +58,9 @@ export default function useUserSyncStatus() { onMounted(() => { usageCount.value++; if (usageCount.value === 1) { + if (store.state.core.session.user_id) { + pollUserSyncStatusTask(); + } resume(); } }); diff --git a/kolibri/core/assets/src/views/StorageNotification.vue b/kolibri/core/assets/src/views/StorageNotification.vue index 77a57a94164..4697c25b52f 100644 --- a/kolibri/core/assets/src/views/StorageNotification.vue +++ b/kolibri/core/assets/src/views/StorageNotification.vue @@ -1,6 +1,6 @@