This commit is contained in:
NotII
2025-03-03 20:44:10 +00:00
parent cd35d34a24
commit 5260978cb8
4 changed files with 19 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import axios from "axios";
import { getCookie } from "@/lib/client-utils";
interface UnreadCounts {
totalUnread: number;
@@ -28,7 +29,7 @@ export default function ChatNotifications() {
useEffect(() => {
const fetchUnreadCounts = async () => {
try {
const vendorId = sessionStorage.getItem("vendorId");
const vendorId = getCookie("vendorId");
if (!vendorId) return;