default to private zap

This commit is contained in:
Paul Miller
2024-04-12 10:52:59 -05:00
committed by benthecarman
parent 11e0b8655b
commit 99f461c99e

View File

@@ -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");