Преглед на файлове

fix: Fix authStore initialization order in OrderChat

unknown преди 2 месеца
родител
ревизия
6c5f804d7b
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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";
 
+const authStore = useAuthStore();
+
 const props = defineProps<{
   orderId: number;
   compact?: boolean;
@@ -201,7 +203,6 @@ function startCooldown() {
     }
   }, 1000);
 }
-const authStore = useAuthStore();