From 8edbf426f7cf468c041cf0f87a44a68d1f6acd46 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Sun, 4 Jun 2017 18:46:32 +0200
Subject: nicer auditor display on withdraw

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

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

diff --git a/src/webex/pages/confirm-create-reserve.tsx b/src/webex/pages/confirm-create-reserve.tsx
index a695d9353..ca8517a25 100644
--- a/src/webex/pages/confirm-create-reserve.tsx
+++ b/src/webex/pages/confirm-create-reserve.tsx
@@ -115,6 +115,7 @@ class Collapsible extends React.Component<CollapsibleProps, CollapsibleState> {
 }
 
 function renderAuditorDetails(rci: ReserveCreationInfo|null) {
+  console.log("rci", rci);
   if (!rci) {
     return (
       <p>
@@ -132,7 +133,12 @@ function renderAuditorDetails(rci: ReserveCreationInfo|null) {
   return (
     <div>
       {rci.exchangeInfo.auditors.map((a) => (
-        <h3>Auditor {a.url}</h3>
+        <div>
+          <h3>Auditor {a.auditor_url}</h3>
+          <p>Public key: {a.auditor_pub}</p>
+          <p>Trusted: {rci.trustedAuditorPubs.indexOf(a.auditor_pub) >= 0 ? "yes" : "no"}</p>
+          <p>Audits {a.denomination_keys.length} of {rci.numOfferedDenoms} denominations</p>
+        </div>
       ))}
     </div>
   );
-- 
cgit v1.2.3

