Skip to content

Commit

Permalink
fix: correct event handler binding in modal components (#1191)
Browse files Browse the repository at this point in the history
fix: invalid scope on modal
  • Loading branch information
abretonc7s authored Jan 10, 2025
1 parent f42502c commit fe95d03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ export class InstallModal {

return (
<WidgetWrapper className="install-model">
<div class='backdrop' onClick={this.onClose}></div>
<div class='backdrop' onClick={() => this.onClose()}></div>
<div class='modal'>
<div class='closeButtonContainer'>
<div class='right'>
<span class='closeButton' onClick={this.onClose}>
<span class='closeButton' onClick={() => this.onClose()}>
<CloseButton />
</span>
</div>
Expand Down Expand Up @@ -168,7 +168,7 @@ export class InstallModal {

<button
class='button'
onClick={this.onStartDesktopOnboardingHandler}
onClick={() => this.onStartDesktopOnboardingHandler()}
>
<InstallIcon />
<span class='installExtensionText'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class SelectModal {
{t('SELECT_MODAL.CRYPTO_TAKE_CONTROL_TEXT')}
</div>

<button class='button' onClick={this.connectWithExtensionHandler}>
<button class='button' onClick={() => this.connectWithExtensionHandler()}>
<ConnectIcon />
<span class='installExtensionText'>
{t('CONNECT_WITH_EXTENSION')}
Expand Down

0 comments on commit fe95d03

Please sign in to comment.