This commit is contained in:
Dave
2025-09-12 12:41:05 -04:00
parent c42a0139fc
commit 0f1348496c
5 changed files with 967 additions and 972 deletions

View File

@@ -149,7 +149,7 @@ const SocketProvider = ({ children, bodyshop, navigate, currentUser }) => {
useEffect(() => {
const initializeSocket = async (token) => {
if (!bodyshop || !bodyshop.id || socketRef.current) return;
if (!bodyshop?.id || socketRef.current) return;
const endpoint = import.meta.env.PROD ? import.meta.env.VITE_APP_AXIOS_BASE_API_URL : "";
const socketInstance = SocketIO(endpoint, {