fix: challenge modal: cancel instead of dismiss when pressing escape

This commit is contained in:
Baptiste Grob
2021-01-22 12:48:14 +01:00
parent afb12f1420
commit 611ca2fd13

View File

@@ -244,7 +244,7 @@ function ChallengeModalView({ ctrl }: { ctrl: ChallengeModalCtrl }) {
initialFocusRef={initialFocusRef}
onDismiss={() => {
if (ctrl.challenge.cancelable) {
ctrl.dismiss();
ctrl.cancel();
}
}}
>