Skip to content

Commit 436b11f

Browse files
committed
Prevent navigation event during connection
1 parent 14e78ff commit 436b11f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/pages/confirm-transaction-base/confirm-transaction-base.component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,9 @@ export default class ConfirmTransactionBase extends Component {
711711
{showLedgerSteps ? (
712712
<HardwareConnectivityMessage
713713
connected={hardwareIsReady}
714-
onClick={() => {
714+
onClick={(e) => {
715715
console.log('Opening the modal!');
716+
e?.preventDefault?.();
716717
this.setState({ showingHardwareConnectionContents: true });
717718
}}
718719
/>

ui/pages/confirm-transaction-base/hardware-connectivity/hardware-connectivity-message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function HardwareConnectivityMessage({
2020
) : (
2121
<>
2222
{t('hardwareWalletConnectivityNotConnected', ['Ledger'])}{' '}
23-
<a href="#" onClick={onClick}>
23+
<a href="javascript:;" onClick={onClick}>
2424
{t('hardwareWalletConnectivityNotConnectedConversion')}
2525
</a>
2626
</>

0 commit comments

Comments
 (0)