mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-21 14:14:46 +01:00
switch to setup_new_profile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user