fix frontend error toast bug
This commit is contained in:
@@ -20,7 +20,7 @@ import 'react-toastify/dist/ReactToastify.css';
|
||||
function App() {
|
||||
const toMessage = (input) => {
|
||||
if (typeof input === 'string') return input;
|
||||
if (input.reason.message) return input.reason.message;
|
||||
if (input.reason?.message) return input.reason.message;
|
||||
if (input.message) return input.message;
|
||||
try {
|
||||
return JSON.stringify(input);
|
||||
|
||||
Reference in New Issue
Block a user