aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx8
1 files changed, 3 insertions, 5 deletions
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