diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index f9334ae..f392039 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -97,6 +97,12 @@ class Main extends Component { window.open(data.redirect ,"_self") } } + }).catch((error) => { + this.setState({ + progress: false, + text: "Chyba: " + error.status +", " + error.statusText, + status: "failed", + }) }); } togglefaq(){