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 12, 2024
1 parent c4ed0c1 commit e137e5e
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 e137e5e

Please sign in to comment.