bug: Remove extra prop from profile

This commit is contained in:
Kieran 2023-01-27 18:22:53 +00:00
parent 3d7661214c
commit 27ccf9cb5b
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,12 @@ export interface MetadataCache extends UserMetadata {
/**
* The pubkey of the owner of this metadata
*/
pubkey: HexKey
pubkey: HexKey,
/**
* bech32 encoded pub key
*/
npub: string
};
export function mapEventToProfile(ev: TaggedRawEvent) {

View File

@ -65,6 +65,7 @@ export default function ProfileSettings() {
delete userCopy["loaded"];
delete userCopy["created"];
delete userCopy["pubkey"];
delete userCopy["npub"];
console.debug(userCopy);
let ev = await publisher.metadata(userCopy);