diff --git a/js/components/operatorSignIn/operatorSelection.tsx b/js/components/operatorSignIn/operatorSelection.tsx index 68c1e0e..c9f5e8d 100644 --- a/js/components/operatorSignIn/operatorSelection.tsx +++ b/js/components/operatorSignIn/operatorSelection.tsx @@ -42,7 +42,17 @@ export const OperatorSelection = ({ const buttonEnabled = badgeEntry !== null; return ( -
+
{ + e.preventDefault(); + if (badgeEntry === null) { + throw new Error("operatorSelection badgeEntry was impossibly null."); + } + + onOK(badgeEntry); + }} + > {nfcSupported ? : } @@ -62,16 +72,6 @@ export const OperatorSelection = ({ /> -
+ ); };