From 3c5ff6da1d6de97c581c1f203ab7ef426fcacdb7 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Fri, 19 Jul 2019 12:01:15 +0200 Subject: [PATCH] prevent wallet select to fire other events --- client/src/components/atoms/Account.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/atoms/Account.tsx b/client/src/components/atoms/Account.tsx index cb6f313..704eff1 100644 --- a/client/src/components/atoms/Account.tsx +++ b/client/src/components/atoms/Account.tsx @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react' +import React, { PureComponent, MouseEvent } from 'react' import Dotdotdot from 'react-dotdotdot' import { toDataUrl } from 'ethereum-blockies' import styles from './Account.module.scss' @@ -18,7 +18,8 @@ export default class Account extends PureComponent< isAccountInfoOpen: false } - private toggleAccountInfo() { + private toggleAccountInfo(event: MouseEvent) { + event.preventDefault() this.setState({ isAccountInfoOpen: !this.state.isAccountInfoOpen }) } @@ -61,7 +62,7 @@ export default class Account extends PureComponent< {isBurner ? (