Jelajahi Sumber

fix: Fix authStore initialization order in OrderChat

unknown 2 bulan lalu
induk
melakukan
6c5f804d7b
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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();