improved error loggin and updated imports to fix build failure

This commit is contained in:
2024-06-19 15:06:28 +01:00
parent d01179c724
commit be99db0774
78 changed files with 319 additions and 325 deletions
+3 -3
View File
@@ -121,9 +121,9 @@ const TopThree = (props) => {
setMyRepresentations(data);
setMyRepresentationsDetails(data);
})
.catch((err) => {
consoleLogger(err);
res.status(400).json(err);
.catch((error) => {
consoleLogger(error);
res.status(400).json(error);
})
.then(() => {
setCurrentView({
+3 -3
View File
@@ -778,9 +778,9 @@ const ViewAllResults = (props) => {
setMyRepresentations(data);
setMyRepresentationsDetails(data);
})
.catch((err) => {
consoleLogger(err);
res.status(400).json(err);
.catch((error) => {
consoleLogger(error);
res.status(400).json(error);
})
.then(() => {
setCurrentView({