Ver código fonte

fix: Fix authStore initialization order in OrderChat

unknown 2 meses atrás
pai
commit
6c5f804d7b
1 arquivos alterados com 2 adições e 1 exclusões
  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();