error handling

This commit is contained in:
Martin Quarda 2024-10-08 09:28:56 +02:00
parent 6898df690e
commit 07c77fef48

View File

@ -97,6 +97,12 @@ class Main extends Component {
window.open(data.redirect ,"_self") window.open(data.redirect ,"_self")
} }
} }
}).catch((error) => {
this.setState({
progress: false,
text: "Chyba: " + error.status +", " + error.statusText,
status: "failed",
})
}); });
} }
togglefaq(){ togglefaq(){