mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Bug: when connected to custom Lndhub, create new ln wallet -> backup screen doesnt include this custom server
This commit is contained in:
parent
52bc662fd0
commit
b318b20856
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user