Skip to content

Commit

Permalink
Merge pull request #2652 from kaloudis/zeus-2626
Browse files Browse the repository at this point in the history
ZEUS-2626: Lightning Address Settings: Notifications setting does not persist
  • Loading branch information
kaloudis authored Dec 21, 2024
2 parents 9042771 + a3b403a commit ee60f66
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions views/Settings/LightningAddress/LightningAddressSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default class LightningAddressSettings extends React.Component<
: false,
nostrPrivateKey: settings.lightningAddress?.nostrPrivateKey || '',
nostrRelays: settings.lightningAddress?.nostrRelays || [],
notifications: settings.lightningAddress?.notifications || 1
notifications:
settings.lightningAddress?.notifications !== undefined
? settings.lightningAddress.notifications
: 1
});
}

Expand Down Expand Up @@ -106,7 +109,11 @@ export default class LightningAddressSettings extends React.Component<
}
}}
rightComponent={
loading ? <LoadingIndicator size={32} /> : <></>
loading ? (
<View>
<LoadingIndicator size={30} />
</View>
) : undefined
}
navigation={navigation}
/>
Expand Down

0 comments on commit ee60f66

Please sign in to comment.