From 89e59cca28a86763519237ab9c6971600e200b5e Mon Sep 17 00:00:00 2001
From: Steve Klebanoff <steve.klebanoff@gmail.com>
Date: Thu, 25 Oct 2018 14:48:59 -0700
Subject: cleanup code

---
 packages/instant/src/components/buy_button.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'packages/instant/src/components/buy_button.tsx')

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);
-- 
cgit v1.2.3

