forked from mirrored/github-stats-extended
fix frontend error toast bug
This commit is contained in:
1 parent
9132995b57
commit
7582215236
1 file changed
+1
-1
@@ -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