Skip to content

Commit

Permalink
fix: proper backupStatus interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Sep 25, 2024
1 parent d1a301b commit ba07caf
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions apps/idos-enclave/src/pages/recovery/PasswordOrKeyBackup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,6 @@ function PasswordAndSecretReveal({
</div>
</ReadonlyField>
</div>
<div class="flex flex-col gap-1">
<Paragraph>recover using Lit:</Paragraph>
<ReadonlyField>
<ReadonlyInput type={revealSecret.value ? "text" : "password"} value={secret} />
<div className="flex items-center gap-2">
<RevealButton onClick={handleLitRetrival} />
</div>
</ReadonlyField>
</div>
<Button onClick={onCancel}>Go back</Button>
</div>
);
Expand Down Expand Up @@ -265,7 +256,7 @@ export function PasswordOrKeyBackup({
onSuccess,
}: {
store: Store;
backupStatus: "done" | "pending" | "success";
backupStatus: "done" | "pending" | "success" | "failure";
onSuccess: (result: unknown) => void;
}) {
const reveal = useSignal(false);
Expand Down Expand Up @@ -362,7 +353,7 @@ export function PasswordOrKeyBackup({
{status.value === "pending" ? "Storing..." : "Store securely on the idOS"}
</Button>
)}
{backupStatus === "done" ? (
{backupStatus === "success" ? (
<Paragraph>
Your credentials have been successfully stored. You can close this window now.
</Paragraph>
Expand Down

0 comments on commit ba07caf

Please sign in to comment.