update
This commit is contained in:
@@ -10,6 +10,7 @@ import { Textarea } from "@/components/ui/textarea";
|
||||
import { ArrowLeft, Send, RefreshCw } from "lucide-react";
|
||||
import axios from "axios";
|
||||
import { toast } from "sonner";
|
||||
import { getCookie } from "@/lib/client-utils";
|
||||
|
||||
export default function NewChatForm() {
|
||||
const router = useRouter();
|
||||
@@ -23,7 +24,7 @@ export default function NewChatForm() {
|
||||
useEffect(() => {
|
||||
const fetchVendorStores = async () => {
|
||||
try {
|
||||
const vendorId = sessionStorage.getItem("vendorId");
|
||||
const vendorId = getCookie("vendorId");
|
||||
|
||||
if (!vendorId) {
|
||||
toast.error("You need to be logged in");
|
||||
|
||||
Reference in New Issue
Block a user