Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 18, 2023
1 parent 282bf0f commit 1cadc70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/src/components/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ class Drawer extends Component {
onResponse = (id, state) => {
if (this.state.toast === null) {
this.setState({ toast: '', toastError: false });
} else
if (state) {
} else if (state) {
if (state.val && state.val.match(/^Error\.|^Fehler\.|^Ошибка\./)) {
this.props.socket.getState(`text2command.${this.props.instance}.error`)
.then(_state =>
Expand Down

0 comments on commit 1cadc70

Please sign in to comment.