update
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user