fix private zap button logic

This commit is contained in:
Paul Miller
2024-04-12 16:45:41 -05:00
committed by benthecarman
parent c4ed0c123b
commit e137e5eccd

View File

@@ -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() {