aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacky Chan <jchan@uber.com>2017-08-30 17:13:46 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-21 12:51:37 +0800
commit945cc5d18d8aac11eeb2ea746ddede5b83ff4046 (patch)
tree2c20dfa8a245202749ef9314d9535a9fabbb19c9
parent638bbe04283ec885997db8be6482343b7283bf7b (diff)
downloadtangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar.gz
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar.bz2
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar.lz
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar.xz
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.tar.zst
tangerine-wallet-browser-945cc5d18d8aac11eeb2ea746ddede5b83ff4046.zip
Fix Buy Ether flow
-rw-r--r--mascara/src/app/first-time/backup-phrase-screen.js3
-rw-r--r--mascara/src/app/first-time/buy-ether-screen.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/mascara/src/app/first-time/backup-phrase-screen.js b/mascara/src/app/first-time/backup-phrase-screen.js
index 52ec79307..fdbba6550 100644
--- a/mascara/src/app/first-time/backup-phrase-screen.js
+++ b/mascara/src/app/first-time/backup-phrase-screen.js
@@ -56,12 +56,13 @@ class BackupPhraseScreen extends Component {
};
constructor(props) {
+ const {seedWords} = props
super(props)
this.state = {
isShowingSecret: false,
page: BackupPhraseScreen.PAGE.SECRET,
selectedSeeds: [],
- shuffledSeeds: shuffle(props.seedWords.split(' ')),
+ shuffledSeeds: seedWords && shuffle(seedWords.split(' ')),
}
}
diff --git a/mascara/src/app/first-time/buy-ether-screen.js b/mascara/src/app/first-time/buy-ether-screen.js
index 0a8417bfc..36a18956a 100644
--- a/mascara/src/app/first-time/buy-ether-screen.js
+++ b/mascara/src/app/first-time/buy-ether-screen.js
@@ -86,6 +86,8 @@ class BuyEtherScreen extends Component {
}
renderCoinbaseForm() {
+ const {goToCoinbase, address} = this.props;
+
return (
<div className="buy-ether__action-content-wrapper">
<div>{this.renderCoinbaseLogo()}</div>
@@ -94,7 +96,7 @@ class BuyEtherScreen extends Component {
<div className="buy-ether__buttons">
<button
className="first-time-flow__button"
- onClick={() => this.goToCoinbase(address)}
+ onClick={() => goToCoinbase(address)}
>
Buy
</button>