aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-04-09 00:20:54 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-04-09 00:20:54 +0200
commit6533716fac07e4988ef94231a0c0c8aba68e0d5e (patch)
tree2255e2f1775c050cc638e5de2ca4db8f0da956b8 /src/webex/pages
parent3570e36baa8e407cbfe3e729a638fd8b2d8b22d9 (diff)
downloadwallet-core-6533716fac07e4988ef94231a0c0c8aba68e0d5e.tar.xz
prevent race condition where we can accept tip before the background page knows about it
Diffstat (limited to 'src/webex/pages')
-rw-r--r--src/webex/pages/tip.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webex/pages/tip.tsx b/src/webex/pages/tip.tsx
index f21bc0eaf..6fbb3005d 100644
--- a/src/webex/pages/tip.tsx
+++ b/src/webex/pages/tip.tsx
@@ -127,7 +127,7 @@ class TipDisplay extends React.Component<TipDisplayProps, TipDisplayState> {
<button
className="pure-button pure-button-primary"
type="button"
- disabled={!(this.state.rci && this.state.tipStatus)}
+ disabled={!(this.state.rci && this.state.tipStatus && this.state.tipStatus.tipRecord)}
onClick={() => this.accept()}>
{ this.state.working
? <span><object className="svg-icon svg-baseline" data="/img/spinner-bars.svg" /> </span>