Skip to content

Commit

Permalink
chore: simplify backup page copy for connected alby accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Oct 31, 2024
1 parent a3babb4 commit 77745fb
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions frontend/src/screens/BackupMnemonic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,15 @@ export function BackupMnemonic() {
<b>backs up your wallet savings balance</b>.&nbsp;
{info?.albyAccountConnected && (
<>
You also need to make sure you do not forget your{" "}
<b>unlock password</b> as this will be used to recover funds
from channels. Encrypted channel backups are saved
automatically to your Alby Account.
Encrypted channel backups are saved automatically to your
Alby Account.
</>
)}
{!info?.albyAccountConnected && (
<>
Make sure to also backup your <b>data directory</b> as this
is required to recover funds on your channels. You can also
connect your Alby Account for automatic encrypted backups
(you still need your seed and unlock password to decrypt
those).
connect your Alby Account for automatic encrypted backups.
</>
)}
</span>
Expand All @@ -166,14 +162,9 @@ export function BackupMnemonic() {
</div>
<span>
If you lose access to your hub and do not have your{" "}
<b>recovery phrase</b>&nbsp;
{info?.albyAccountConnected && (
<>
or your <b>unlock password</b>
</>
)}
<b>recovery phrase</b>
{!info?.albyAccountConnected && (
<>or do not backup your data directory</>
<>&nbsp;or do not backup your data directory</>
)}
, you will lose access to your funds.
</span>
Expand Down Expand Up @@ -201,7 +192,7 @@ export function BackupMnemonic() {
secure place
</Label>
</div>
{backedUp && (
{backedUp && !info?.albyAccountConnected && (
<div className="flex mt-5">
<Checkbox
id="backup2"
Expand All @@ -210,12 +201,8 @@ export function BackupMnemonic() {
/>
<Label htmlFor="backup2" className="ml-2">
I understand the <b>recovery phrase</b> AND{" "}
{info?.albyAccountConnected ? (
<b>unlock password</b>
) : (
<b>a backup of my hub data directory</b>
)}{" "}
is required to recover funds from my lightning channels.{" "}
<b>a backup of my hub data directory</b> is required to
recover funds from my lightning channels.{" "}
</Label>
</div>
)}
Expand Down

0 comments on commit 77745fb

Please sign in to comment.