Skip to content

Commit 4df2b8e

Browse files
kiwicoppleclaude
andcommitted
Fix useEffect dependencies in edit.tsx
Add missing dependencies (router, handle, profile.avatar_url) to useEffect dependency array to resolve exhaustive-deps ESLint warning. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 52e668c commit 4df2b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/[handle]/_/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const EditAccountPage: NextPageWithLayout = () => {
6060
setPreviewImage(profile.avatar_url)
6161
}
6262
}
63-
}, [isProfileSuccess, isOrgsSuccess, preventUpdating])
63+
}, [isProfileSuccess, isOrgsSuccess, preventUpdating, router, handle, profile.avatar_url])
6464

6565
const uploadAvatar = async (e: React.ChangeEvent<HTMLInputElement>) => {
6666
const file = e.target.files?.[0]

0 commit comments

Comments
 (0)