WA-234 Stop propagating event on add owner

This commit is contained in:
apanizo 2018-06-07 22:41:18 +02:00
parent 2da7eab781
commit f098d60e28
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ class GnoSafe extends React.PureComponent<SafeProps, State> {
this.setState({ component: <Threshold numOwners={safe.get('owners').count()} safe={safe} /> })
}
onAddOwner = () => {
onAddOwner = (e: SyntheticEvent<HTMLButtonElement>) => {
const { safe } = this.props
e.stopPropagation()
this.setState({ component: <AddOwner threshold={safe.get('threshold')} safe={safe} /> })
}