diff --git a/src/api/users.ts b/src/api/users.ts
index 058327d..b0f3a98 100644
--- a/src/api/users.ts
+++ b/src/api/users.ts
@@ -31,18 +31,8 @@ export interface Profile {
subscription_page_url: string | null;
}
-export function getVerifiedEthereumAddress(profile: Profile): string | null {
- for (const field of profile.identity_proofs) {
- if (field.name === "$ETH") {
- return field.value
- }
- }
- return null
-}
-
export interface User extends Profile {
source: Source;
- wallet_address: string | null;
}
export interface ProfileWrapper extends Profile {}
@@ -57,7 +47,12 @@ export class ProfileWrapper {
}
getVerifiedEthereumAddress(): string | null {
- return getVerifiedEthereumAddress(this)
+ for (const field of this.identity_proofs) {
+ if (field.name === "$ETH") {
+ return field.value
+ }
+ }
+ return null
}
}
diff --git a/src/components/Post.vue b/src/components/Post.vue
index 8a6f89c..b691588 100644
--- a/src/components/Post.vue
+++ b/src/components/Post.vue
@@ -7,9 +7,9 @@