From f1fe46b11ac606973b5bd818b1846a1e8754ce6e Mon Sep 17 00:00:00 2001 From: liamzi Date: Fri, 17 Jan 2025 17:18:53 +0800 Subject: [PATCH] fix --- src/contexts/AuthContext.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/AuthContext.jsx b/src/contexts/AuthContext.jsx index 3589d9c..2160134 100644 --- a/src/contexts/AuthContext.jsx +++ b/src/contexts/AuthContext.jsx @@ -182,7 +182,7 @@ export const AuthProvider = ({ children }) => { } }; const fetchMenuList = async (role) => { - console.log(role,'role'); + if(!role||!user?.id) return; try { const { data, error } = await supabase .from('resources')