Skip to content

Commit

Permalink
Don't set NIP-05 after lightning address
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and TonyGiorgio committed Apr 8, 2024
1 parent 163deeb commit bffe3a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/routes/settings/LightningAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,12 @@ function HermesForm(props: { onSubmit: (name: string) => void }) {

const formattedName = `${name}@${hermesDomain}`;

const existingProfile = state.mutiny_wallet?.get_nostr_profile();

const _ = await state.mutiny_wallet?.edit_nostr_profile(
undefined,
undefined,
// lnurl
formattedName,
// nip05 if they don't have one
existingProfile?.nip05 ? undefined : formattedName
undefined
);
reset(nameForm);
props.onSubmit(name);
Expand Down

0 comments on commit bffe3a8

Please sign in to comment.