WA-238 Fix automic onClick calls

This commit is contained in:
apanizo 2018-05-27 12:24:50 +02:00
parent 8e908bb5fc
commit efe2905526
1 changed files with 4 additions and 2 deletions

View File

@ -27,9 +27,11 @@ type Props = Open & SelectorProps & {
export const PROCESS_TXS = 'PROCESS TRANSACTION'
class GnoTransaction extends React.PureComponent<Props, {}> {
onProccesClick = () => this.props.onProcessTx(this.props.transaction, this.props.confirmed)
render() {
const {
open, toggle, transaction, confirmed, safeName, onProcessTx,
open, toggle, transaction, confirmed, safeName,
} = this.props
const txHash = transaction.get('tx')
@ -68,7 +70,7 @@ class GnoTransaction extends React.PureComponent<Props, {}> {
<Button
variant="raised"
color="primary"
onClick={onProcessTx(transaction, confirmed)}
onClick={this.onProccesClick}
>
{PROCESS_TXS}
</Button>