ok
This commit is contained in:
@@ -44,10 +44,10 @@ const App = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const shopId = window.location.pathname.split('/')[1]; // Get shopId from the URL
|
||||
const userId = localStorage.getItem('userId');
|
||||
const user_id = localStorage.getItem('user_id');
|
||||
|
||||
// Connect to Socket.IO if userId is present
|
||||
// if (userId) {
|
||||
// Connect to Socket.IO if user_id is present
|
||||
// if (user_id) {
|
||||
// connectSocket(shopId, 1);
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user