on master help sign in
- toggle userApproval when button label is clicked as well
a295fe5Chris Johnson
src/bridge/components/StatelessTransaction.js+2−2
@@ -16,7 +16,7 @@ const StatelessTransaction = props => {
16 const { canSend, handleSubmit } = props
16 const { canSend, handleSubmit } = props
17
17
18 // TODO: Investigate
18 // TODO: Investigate
19− // setState doesn't seem to work in SetProxy/handleSubmit;
19+ // setState doesn't seem to work in SetProxy/handleSubmit;
20 // - TypeError: Cannot read property 'updater' of undefined
20 // - TypeError: Cannot read property 'updater' of undefined
21 // so just modifying the DOM manually here. (https://imgur.com/a/i0Qsyq1)
21 // so just modifying the DOM manually here. (https://imgur.com/a/i0Qsyq1)
22
22
@@ -190,7 +190,7 @@ const StatelessTransaction = props => {
190 onClick={ setUserApproval }
190 onClick={ setUserApproval }
191 state={ userApproval }
191 state={ userApproval }
192 >
192 >
193− <div>
193+ <div onClick={ setUserApproval }>
194 { `I approve this transaction and wish to send.` }
194 { `I approve this transaction and wish to send.` }
195 </div>
195 </div>
196 </CheckboxButton>
196 </CheckboxButton>