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', {
disabled,
onClick: () => {
this.setState({disclaimerDisabled: true})
onConfirm()
this.setState({disclaimerDisabled: true}, () => onConfirm())
},
style: {
marginTop: '18px',