fix frontend error toast bug

This commit is contained in:
martin-mfg
2026-01-05 19:40:23 +01:00
parent 9132995b57
commit 7582215236
+1 -1
View File
@@ -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);