From 78b55181853b93363b325715207835b11f8c9ad2 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 3 Jun 2022 12:17:51 -0300
Subject: do not use selection, no need

---
 packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
index 45d8e46f3..2d1a51aa3 100644
--- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
@@ -78,14 +78,12 @@ export function SecretSelectionScreen(): VNode {
       hideNext="Please select version to recover"
     >
       <p>Found versions:</p>
-      {policies.map((x) => (
+      {policies.map((version) => (
         <div>
-          {x.policy_hash} / {x.secret_name}
+          {version.policy_hash} / {version.secret_name}
           <button
             onClick={async () => {
-              await reducer.transition("select_version", {
-                selection: x,
-              });
+              await reducer.transition("select_version", version);
             }}
           >
             Recover
-- 
cgit v1.2.3

