From 0b198e08888830890622e983445c75f947186b4c Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Thu, 13 Oct 2016 20:02:42 +0200
Subject: refactor work queue

---
 pages/confirm-create-reserve.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'pages/confirm-create-reserve.tsx')

diff --git a/pages/confirm-create-reserve.tsx b/pages/confirm-create-reserve.tsx
index 3b5a4d161..9bff0e42a 100644
--- a/pages/confirm-create-reserve.tsx
+++ b/pages/confirm-create-reserve.tsx
@@ -172,7 +172,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> {
 
 
   renderAdvanced(): JSX.Element {
-    if (this.detailCollapsed() && this.url() !== null) {
+    if (this.detailCollapsed() && this.url() !== null && !this.statusString()) {
       return (
         <button className="linky"
                 onClick={() => this.detailCollapsed(false)}>
@@ -224,6 +224,13 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> {
         <em>{shortName}</em>
       </p>;
     }
+    if (this.statusString()) {
+      return (
+        <p>
+          <strong style="color: red;">A problem occured, see below.</strong>
+        </p>
+      );
+    }
     return (
       <p>
         Information about fees will be available when an exchange provider is selected.
-- 
cgit v1.2.3

