Browse Source

update to hadle error 500

master
Alex Cheung 1 year ago
parent
commit
5de0aedc8b
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      src/auth/index.js
  2. +1
    -0
      src/pages/Proof/Create_FromApp/ProofForm.js

+ 5
- 0
src/auth/index.js View File

@@ -197,6 +197,11 @@ export const SetupAxiosInterceptors = () => {
await navigate('/login'); await navigate('/login');
// await window.location.reload(); // await window.location.reload();
} }
if (error.response.status === 500) {
// await dispatch(handleLogoutFunction());
// await navigate('/login');
// await window.location.reload();
}
} }


} }


+ 1
- 0
src/pages/Proof/Create_FromApp/ProofForm.js View File

@@ -112,6 +112,7 @@ const FormPanel = ({ formData }) => {
setWait(false); setWait(false);
}, },
onError: function () { onError: function () {
// console.log(error)
setWarningText("Unable to calculate, please input manually."); setWarningText("Unable to calculate, please input manually.");
setIsWarningPopUp(true); setIsWarningPopUp(true);
setWait(false); setWait(false);


Loading…
Cancel
Save