switch to setup_new_profile

This commit is contained in:
Paul Miller
2024-04-10 19:10:31 -05:00
parent 2f027bc82e
commit de3460bc0c

View File

@@ -23,7 +23,7 @@ export function NewProfile() {
async function handleSkip() {
setSkipping(true);
// set up an empty profile so we at least have some kind0 event
const profile = await state.mutiny_wallet?.edit_nostr_profile(
const profile = await state.mutiny_wallet?.setup_new_profile(
DEFAULT_NOSTR_NAME,
undefined,
undefined,
@@ -38,8 +38,8 @@ export function NewProfile() {
async function createProfile(p: EditableProfile) {
setCreating(true);
try {
const profile = await state.mutiny_wallet?.edit_nostr_profile(
p.nym ? p.nym : undefined,
const profile = await state.mutiny_wallet?.setup_new_profile(
p.nym ? p.nym : DEFAULT_NOSTR_NAME,
p.imageUrl ? p.imageUrl : undefined,
p.lightningAddress ? p.lightningAddress : undefined,
undefined