diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 57c18f3..79a8d74 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -40,7 +40,7 @@ class Main extends Component { for(const [key, value] of searchParams){ if (key == "refId"){ fetch(addr_prefix + "/api/payment_state?refId=" + value).then(resp => resp.json()).then(json =>{ - this.setState({status: json.status, text: json.reason}) + this.setState({status: json.status, status_text: json.reason}) }) } } @@ -85,12 +85,12 @@ class Main extends Component { this.setState({progress:false, uploadProgress: 1.0}); if(data.reason){ this.setState({ - text: data.reason, + status_text: data.reason, status: "failed", }) } else { this.setState({ - text: data.success, + status_text: data.success, status: "success", }) if (data.redirect){ @@ -100,7 +100,7 @@ class Main extends Component { }).catch((error) => { this.setState({ progress: false, - text: "Chyba: " + error.response.status +", " + error.response.data, + status_text: "Chyba: " + error.response.status +", " + error.response.data, status: "failed", }) });