on master help sign in
- toggle userApproval when button label is clicked as well
commita295fe573dd4105ce1b5949d4a63060c669b798e authorChris Johnson <chris@cjohnson.io> dateWed 3 Apr 2019, 14:44 (8 years ago) parentf5a87a8
1 file changed+2−2
src/bridge/components/StatelessTransaction.js+2−2
src/bridge/components/StatelessTransaction.js+2−2
@@ -16,7 +16,7 @@ const StatelessTransaction = props => {
1616 const { canSend, handleSubmit } = props
1717
1818 // TODO: Investigate
19− // setState doesn't seem to work in SetProxy/handleSubmit;
19+ // setState doesn't seem to work in SetProxy/handleSubmit;
2020 // - TypeError: Cannot read property 'updater' of undefined
2121 // so just modifying the DOM manually here. (https://imgur.com/a/i0Qsyq1)
2222
@@ -190,7 +190,7 @@ const StatelessTransaction = props => {
190190 onClick={ setUserApproval }
191191 state={ userApproval }
192192 >
193− <div>
193+ <div onClick={ setUserApproval }>
194194 { `I approve this transaction and wish to send.` }
195195 </div>
196196 </CheckboxButton>