1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Try fixing notice screen synchronous state call

This commit is contained in:
Dan Finlay 2018-02-20 13:51:06 -08:00
parent 6740be109b
commit a1b72e5252

View File

@ -105,8 +105,7 @@ Notice.prototype.render = function () {
h('button.primary', { h('button.primary', {
disabled, disabled,
onClick: () => { onClick: () => {
this.setState({disclaimerDisabled: true}) this.setState({disclaimerDisabled: true}, () => onConfirm())
onConfirm()
}, },
style: { style: {
marginTop: '18px', marginTop: '18px',