diff --git a/package-lock.json b/package-lock.json index c27288e..6cf5555 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "react-easy-crop": "^4.4.2", "react-router": "^6.3.0", "react-router-dom": "^6.3.0", - "teaful": "^0.10.0", + "teaful": "^0.11.0", "wagmi": "^0.6.0" }, "devDependencies": { @@ -10287,8 +10287,9 @@ } }, "node_modules/teaful": { - "version": "0.10.0", - "license": "MIT", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/teaful/-/teaful-0.11.0.tgz", + "integrity": "sha512-gjUA4vkNzVf3zkxyzVRsf+cgBrVh7O1fG0iSsGm2Y21cvEIs0kuGaQNqsxZ+yuqkLJlIF/ROfcvD5xDiv8KmHA==", "peerDependencies": { "react": ">= 16.8.0", "teaful-devtools": ">= 0.4.0" @@ -17905,7 +17906,9 @@ } }, "teaful": { - "version": "0.10.0", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/teaful/-/teaful-0.11.0.tgz", + "integrity": "sha512-gjUA4vkNzVf3zkxyzVRsf+cgBrVh7O1fG0iSsGm2Y21cvEIs0kuGaQNqsxZ+yuqkLJlIF/ROfcvD5xDiv8KmHA==", "requires": {} }, "text-table": { diff --git a/package.json b/package.json index 230a7d7..2a96054 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "react-easy-crop": "^4.4.2", "react-router": "^6.3.0", "react-router-dom": "^6.3.0", - "teaful": "^0.10.0", + "teaful": "^0.11.0", "wagmi": "^0.6.0" }, "devDependencies": { diff --git a/src/components/modals/create-avatar.tsx b/src/components/modals/create-avatar.tsx index dc06e02..8e62631 100644 --- a/src/components/modals/create-avatar.tsx +++ b/src/components/modals/create-avatar.tsx @@ -83,12 +83,7 @@ export const CreateAvatar = ({ children }: Props) => { onClick={(e) => { e.stopPropagation() updateAvatar().then((newAvatar) => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error setStore.profile.avatar(newAvatar) - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error setStore.profile.lastUpdate(new Date()) }) setShown(false) diff --git a/src/services/profile.ts b/src/services/profile.ts index ef71a48..0b0b28b 100644 --- a/src/services/profile.ts +++ b/src/services/profile.ts @@ -115,8 +115,6 @@ const updateProfile = async ( pictureHash, }) - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error setStore.profile.lastSync(new Date()) } @@ -146,15 +144,9 @@ export const useSyncProfile = () => { const profileDate = new Date(profile?.lastUpdate ?? 0) // If remote is more recent - if (wakuDate > profileDate) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error + if (wakuProfile && wakuDate > profileDate) { setStore.profile.username(wakuProfile.username) - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error setStore.profile.lastUpdate(new Date(wakuProfile.date)) - return } @@ -171,8 +163,6 @@ export const useSyncProfile = () => { Date.now() - (profile.lastSync?.getTime() ?? 0) > 24 * 60 * 60 ) { postWakuMessage(waku, getProfileTopic(address), payload).then(() => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error setStore.profile.lastSync(new Date()) }) }