improved error loggin and updated imports to fix build failure
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user