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 ? (