diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 3ef728925..f4df0f00b 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -51,7 +51,11 @@ export default function App() { useEffect(() => { // If there is an error alert open with data, add it to the alertsList if (errorOpen && errorData) { - if(alertsList.length > 0 && JSON.stringify(alertsList[alertsList.length - 1].data)===JSON.stringify(errorData)){ + if ( + alertsList.length > 0 && + JSON.stringify(alertsList[alertsList.length - 1].data) === + JSON.stringify(errorData) + ) { return; } setErrorOpen(false); @@ -65,7 +69,11 @@ export default function App() { } // If there is a notice alert open with data, add it to the alertsList else if (noticeOpen && noticeData) { - if(alertsList.length > 0 && JSON.stringify(alertsList[alertsList.length - 1].data)===JSON.stringify(noticeData)){ + if ( + alertsList.length > 0 && + JSON.stringify(alertsList[alertsList.length - 1].data) === + JSON.stringify(noticeData) + ) { return; } setNoticeOpen(false); @@ -79,7 +87,11 @@ export default function App() { } // If there is a success alert open with data, add it to the alertsList else if (successOpen && successData) { - if(alertsList.length > 0 && JSON.stringify(alertsList[alertsList.length - 1].data)===JSON.stringify(successData)){ + if ( + alertsList.length > 0 && + JSON.stringify(alertsList[alertsList.length - 1].data) === + JSON.stringify(successData) + ) { return; } setSuccessOpen(false); @@ -112,7 +124,7 @@ export default function App() { return ( //need parent component with width and height -
+
{dropItem.title}
-+
{dropItem.link ? ( ) : (
{title}
-+
{link !== "" ? (
+
Please click the 'Reset Application' button to restore the application's state. If the error persists, please create an issue on our GitHub page. We apologize for any inconvenience this may have @@ -14,7 +14,7 @@ export default function CrashErrorComponent({ error, resetErrorBoundary }) {