ADD: If lndhub server is set then button should be visible (#8572)

Co-authored-by: Overtorment <overtorment@gmail.com>
This commit is contained in:
Marcos Rodriguez Vélez 2026-05-21 16:21:41 -05:00 committed by GitHub
parent 26b6419507
commit 3952ec7e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,8 @@ const WalletsAdd: React.FC = () => {
});
}, [entropy]);
const hasStoredLndHub = (walletBaseURI ?? '').trim().length > 0;
const confirmResetEntropy = useCallback(
(newWalletType: ButtonSelected) => {
if (entropy || words) {
@ -516,7 +518,7 @@ const WalletsAdd: React.FC = () => {
size={styles.button}
/>
) : null}
{selectedWalletType === ButtonSelected.OFFCHAIN && LightningButtonMemo}
{(selectedWalletType === ButtonSelected.OFFCHAIN || hasStoredLndHub) && LightningButtonMemo}
</View>
<View style={styles.advanced}>
{selectedWalletType === ButtonSelected.OFFCHAIN && (