FIX: Bug: when connected to custom Lndhub, create new ln wallet -> backup screen doesnt include this custom server

This commit is contained in:
marcosrdz 2021-01-13 11:35:19 -05:00
parent 52bc662fd0
commit b318b20856

View File

@ -47,6 +47,10 @@ const PleaseBackupLNDHub = () => {
};
}, [handleBackButton]);
const secret =
wallet.getBaseURI() === LightningCustodianWallet.defaultBaseUri ? wallet.secret : `${wallet.secret}@${wallet.getBaseURI()}`;
const pop = () => navigation.dangerouslyGetParent().pop();
return (
<SafeBlueArea style={styles.root}>
<StatusBar barStyle="light-content" />
@ -69,9 +73,9 @@ const PleaseBackupLNDHub = () => {
ecl="H"
/>
</View>
<BlueCopyTextToClipboard text={wallet.secret} />
<BlueCopyTextToClipboard text={secret} />
<BlueSpacing20 />
<BlueButton onPress={() => navigation.dangerouslyGetParent().pop()} title={loc.pleasebackup.ok_lnd} />
<BlueButton onPress={pop} title={loc.pleasebackup.ok_lnd} />
</ScrollView>
</SafeBlueArea>
);