Skip to content

Commit

Permalink
fix private zap button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and benthecarman committed Apr 13, 2024
1 parent 626b614 commit 903ff60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ export function Send() {
const [visibility, setVisibility] =
createSignal<PrivacyLevel>("Not Available");

// If the contact has an npub set the default visibility to private zap
// If the contact has an npub and it's an lnurlp send set the default visibility to private zap
createEffect(() => {
contact()?.npub && setVisibility("Private");
contact()?.npub && lnurlp() && setVisibility("Private");
});

function toggleVisibility() {
Expand Down

0 comments on commit 903ff60

Please sign in to comment.