Skip to content

Commit

Permalink
minor bugfix where action.callback getter was executed two times.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjalonso committed Jul 9, 2018
1 parent adfda06 commit 67968b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/scenes/room/dialog-manager/dialog-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class DialogManager {

executeAction(action) {
action.executeSetters();
action.callback && action.callback();
const cb = action.callback;
cb && cb();

if (action.next) {
this._narrationIndex = action.next;
Expand Down

0 comments on commit 67968b2

Please sign in to comment.