Skip to content

Commit

Permalink
fix client error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PS authored and mjancarik committed Oct 13, 2023
1 parent bc4804e commit a0b14df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/integration-react/src/MerkurWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default class MerkurWidget extends AbstractMerkurWidget {
super(props);

this._widget = null;
this._handleClientError = this._handleError.bind(this);
// emitter has widget as first argument, error as second
this._handleClientError = (_widget, error) => this._handleError(error);

this.state = {
encounteredError: false,
Expand Down

0 comments on commit a0b14df

Please sign in to comment.