Skip to content

Commit

Permalink
default to private zap
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and benthecarman committed Apr 12, 2024
1 parent 11e0b86 commit 99f461c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ export function Send() {
const [visibility, setVisibility] =
createSignal<PrivacyLevel>("Not Available");

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

function toggleVisibility() {
if (visibility() === "Not Available") {
setVisibility("Private");
Expand Down

0 comments on commit 99f461c

Please sign in to comment.