diff options
author | Kevin G. Serrano <kevgagser@gmail.com> | 2016-11-08 08:02:02 +0800 |
---|---|---|
committer | Kevin G. Serrano <kevgagser@gmail.com> | 2016-11-08 08:02:02 +0800 |
commit | 7b3f1ecc41e1c57252f1d862930aebc3e9c446ea (patch) | |
tree | ec1237fd092d218d2bb8f807cbb9e5c0a07af708 /ui/app/components | |
parent | 30ff9b5e10f12588a213496921e84514c2018641 (diff) | |
download | tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar.gz tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar.bz2 tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar.lz tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar.xz tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.tar.zst tangerine-wallet-browser-7b3f1ecc41e1c57252f1d862930aebc3e9c446ea.zip |
Unify warning functions.
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/coinbase-form.js | 4 | ||||
-rw-r--r-- | ui/app/components/shapeshift-form.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/coinbase-form.js b/ui/app/components/coinbase-form.js index efd05ec96..3c5708bf8 100644 --- a/ui/app/components/coinbase-form.js +++ b/ui/app/components/coinbase-form.js @@ -116,10 +116,10 @@ CoinbaseForm.prototype.toCoinbase = function () { props.dispatch(actions.buyEth(address, props.buyView.amount)) } else if (!isValidAmountforCoinBase(amount).valid) { message = isValidAmountforCoinBase(amount).message - return props.dispatch(actions.showWarning(message)) + return props.dispatch(actions.displayWarning(message)) } else { message = 'Receiving address is invalid.' - return props.dispatch(actions.showWarning(message)) + return props.dispatch(actions.displayWarning(message)) } } diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js index 2bb384b94..1da549288 100644 --- a/ui/app/components/shapeshift-form.js +++ b/ui/app/components/shapeshift-form.js @@ -244,7 +244,7 @@ ShapeshiftForm.prototype.updateCoin = function (event) { if (!coinOptions[coin.toUpperCase()] || coin.toUpperCase() === 'ETH') { var message = 'Not a valid coin' - return props.dispatch(actions.showWarning(message)) + return props.dispatch(actions.displayWarning(message)) } else { return props.dispatch(actions.pairUpdate(coin)) } |