Przeglądaj źródła

fix: Fix authStore initialization order in OrderChat

unknown 2 miesięcy temu
rodzic
commit
6c5f804d7b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/components/OrderChat.vue

+ 2 - 1
src/components/OrderChat.vue

@@ -119,6 +119,8 @@ import { toast } from "vue-sonner";
 
 
 import { getWsUrl } from "@/lib/utils";
 import { getWsUrl } from "@/lib/utils";
 
 
+const authStore = useAuthStore();
+
 const props = defineProps<{
 const props = defineProps<{
   orderId: number;
   orderId: number;
   compact?: boolean;
   compact?: boolean;
@@ -201,7 +203,6 @@ function startCooldown() {
     }
     }
   }, 1000);
   }, 1000);
 }
 }
-const authStore = useAuthStore();