fix: only show zap button if lnurl is available

This commit is contained in:
Alejandro Gomez 2023-02-05 12:30:26 +01:00
parent 31b4954f13
commit 86043e813f
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
1 changed files with 5 additions and 3 deletions

View File

@ -181,9 +181,11 @@ export default function ProfilePage() {
</>
) : (
<>
<IconButton onClick={() => setShowLnQr(true)}>
<Zap width={14} height={16} />
</IconButton>
{lnurl && (
<IconButton onClick={() => setShowLnQr(true)}>
<Zap width={14} height={16} />
</IconButton>
)}
{!loggedOut && (
<>
<IconButton onClick={() => navigate(`/messages/${hexToBech32("npub", id)}`)}>