diff --git a/src/views/dashboards/userDashboard/wash/MyWashStart.vue b/src/views/dashboards/userDashboard/wash/MyWashStart.vue index fdec5aac..4af7dba7 100644 --- a/src/views/dashboards/userDashboard/wash/MyWashStart.vue +++ b/src/views/dashboards/userDashboard/wash/MyWashStart.vue @@ -1369,7 +1369,7 @@ const applyServerActiveWash = async (activeWash: any) => { }; const restoreServerActiveWash = async () => { - if (isRestoringServerActiveWash.value) { + if (isMyWashStartUnmounted.value || isRestoringServerActiveWash.value) { return; } @@ -1385,6 +1385,10 @@ const restoreServerActiveWash = async () => { isRestoringServerActiveWash.value = true; try { const activeWash = await fetchServerActiveWash(); + if (isMyWashStartUnmounted.value) { + return; + } + if (activeWash) { shouldRestoreServerActiveWash.value = false; await applyServerActiveWash(activeWash);