bug: Remove extra prop from profile
This commit is contained in:
parent
3d7661214c
commit
27ccf9cb5b
@ -15,7 +15,12 @@ export interface MetadataCache extends UserMetadata {
|
|||||||
/**
|
/**
|
||||||
* The pubkey of the owner of this metadata
|
* The pubkey of the owner of this metadata
|
||||||
*/
|
*/
|
||||||
pubkey: HexKey
|
pubkey: HexKey,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* bech32 encoded pub key
|
||||||
|
*/
|
||||||
|
npub: string
|
||||||
};
|
};
|
||||||
|
|
||||||
export function mapEventToProfile(ev: TaggedRawEvent) {
|
export function mapEventToProfile(ev: TaggedRawEvent) {
|
||||||
|
@ -65,6 +65,7 @@ export default function ProfileSettings() {
|
|||||||
delete userCopy["loaded"];
|
delete userCopy["loaded"];
|
||||||
delete userCopy["created"];
|
delete userCopy["created"];
|
||||||
delete userCopy["pubkey"];
|
delete userCopy["pubkey"];
|
||||||
|
delete userCopy["npub"];
|
||||||
console.debug(userCopy);
|
console.debug(userCopy);
|
||||||
|
|
||||||
let ev = await publisher.metadata(userCopy);
|
let ev = await publisher.metadata(userCopy);
|
||||||
|
Loading…
Reference in New Issue
Block a user