chore: tweak new user flow

This commit is contained in:
2023-04-18 13:17:50 +01:00
parent 8e2f01fdff
commit 364637ab54
6 changed files with 15 additions and 38 deletions

View File

@ -80,7 +80,7 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
const ev = await publisher.metadata(userCopy);
publisher.broadcast(ev);
const newProfile = mapEventToProfile(ev as TaggedRawEvent);
const newProfile = mapEventToProfile(ev);
if (newProfile) {
await UserCache.set(newProfile);
}