Skip to content

Commit

Permalink
fix: challenge modal: cancel instead of dismiss when pressing escape
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Jan 22, 2021
1 parent afb12f1 commit 611ca2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function ChallengeModalView({ ctrl }: { ctrl: ChallengeModalCtrl }) {
initialFocusRef={initialFocusRef}
onDismiss={() => {
if (ctrl.challenge.cancelable) {
ctrl.dismiss();
ctrl.cancel();
}
}}
>
Expand Down

0 comments on commit 611ca2f

Please sign in to comment.