aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 05:54:19 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 05:54:19 +0800
commite3510f3bcf4eea76d93888faedd822117bab7bdb (patch)
tree6737a36f05d21b2dab292199cb81e7bd39fce4c1 /packages/instant/src/components
parentcd06c0e913bf8f4a1d7b29eecb01c87f92a76e89 (diff)
parent89e59cca28a86763519237ab9c6971600e200b5e (diff)
downloaddexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar.gz
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar.bz2
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar.lz
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar.xz
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.tar.zst
dexon-sol-tools-e3510f3bcf4eea76d93888faedd822117bab7bdb.zip
Merge branch 'feature/instant/view-processings-txn' into feature/instant/txn-failure
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/buy_button.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index a7a22e3bc..a70269dde 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -49,14 +49,9 @@ export class BuyButton extends React.Component<BuyButtonProps> {
} catch (e) {
if (e instanceof Error && e.message === AssetBuyerError.SignatureRequestDenied) {
this.props.onSignatureDenied(buyQuote, e);
- } else {
- throw e;
+ return;
}
- }
-
- // Have to let TS know that txHash is definitely defined now
- if (!txHash) {
- throw new Error('No txHash available');
+ throw e;
}
this.props.onBuyProcessing(buyQuote, txHash);