Skip to content

Commit 36b158f

Browse files
update EIK, disable EIK auto list update, fix crashing when updating primary list
1 parent a4a7362 commit 36b158f

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"check": "bun lint && bun format && bun typecheck && bun run build"
1818
},
1919
"dependencies": {
20+
"@encrypteddegen/identity-kit": "^0.2.71",
2021
"@next/third-parties": "15.1.6",
2122
"@rainbow-me/rainbowkit": "^2.2.4",
2223
"@react-spring/web": "^9.7.5",
@@ -37,7 +38,6 @@
3738
"@vercel/kv": "^3.0.0",
3839
"caniuse-lite": "^1.0.30001687",
3940
"clsx": "^2.1.0",
40-
"@encrypteddegen/identity-kit": "^0.2.69",
4141
"i18next": "^23.11.5",
4242
"i18next-browser-languagedetector": "^8.0.0",
4343
"i18next-http-backend": "^2.5.2",

src/app/[user]/hooks/use-user-profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const useUser = (user: string) => {
7878
search: followingSearch,
7979
})
8080

81-
if (fetchedFollowing.following.length === 0) setIsEndOfFollowing(true)
81+
if (fetchedFollowing.following?.length === 0) setIsEndOfFollowing(true)
8282

8383
return fetchedFollowing
8484
},
@@ -122,7 +122,7 @@ const useUser = (user: string) => {
122122
search: followersSearch,
123123
})
124124

125-
if (fetchedFollowers.followers.length === 0) setIsEndOfFollowers(true)
125+
if (fetchedFollowers.followers?.length === 0) setIsEndOfFollowers(true)
126126

127127
return fetchedFollowers
128128
},

src/app/[user]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export async function generateMetadata(props: Props): Promise<Metadata> {
2828
const getAccount = async () => {
2929
try {
3030
if (ssr) {
31-
return await fetchAccount(user, isList ? Number(user) : undefined)
31+
const response = await fetchAccount(user, isList ? Number(user) : undefined)
32+
if(!response?.address) return null
33+
return response
3234
}
3335

3436
return null

src/app/providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const Providers: React.FC<ProviderProps> = ({ children, initialState }) => {
4444
<RainbowKitProvider coolMode={false} theme={rainbowKitTheme}>
4545
<ThirdwebProvider>
4646
<TranslationProvider translations={translations}>
47-
<TransactionProvider batchTransactions={true}>
47+
<TransactionProvider batchTransactions={true} disableAutoListSelection={true} >
4848
<EFPProfileProvider>
4949
<SoundsProvider>
5050
<RecommendedProfilesProvider>

0 commit comments

Comments
 (0)