fix redirect
Browse files
frontend/src/components/Opportunities.jsx
CHANGED
@@ -21,10 +21,10 @@ const Opportunities = () => {
|
|
21 |
}
|
22 |
}).then(response => response.json())
|
23 |
.then(data => {
|
24 |
-
if (!data.success) {
|
25 |
handleLogout();
|
26 |
return
|
27 |
-
}
|
28 |
console.log('data*******', data, !data.records || data.records.length === 0)
|
29 |
if (!data.records || data.records.length === 0) {
|
30 |
setIsPopupOpen(true);
|
|
|
21 |
}
|
22 |
}).then(response => response.json())
|
23 |
.then(data => {
|
24 |
+
/*if (!data.success) {
|
25 |
handleLogout();
|
26 |
return
|
27 |
+
}*/
|
28 |
console.log('data*******', data, !data.records || data.records.length === 0)
|
29 |
if (!data.records || data.records.length === 0) {
|
30 |
setIsPopupOpen(true);
|