Refactor FeedbackPage component: Simplify props handling and remove unused state and effects related to event and feedback management, streamlining the feedback submission process.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 54s

This commit is contained in:
Julien Froidefond
2025-12-12 10:07:15 +01:00
parent ae08ed7793
commit f2805505a1
4 changed files with 24 additions and 260 deletions

View File

@@ -35,6 +35,8 @@ export default function Avatar({
useEffect(() => {
if (src !== prevSrcRef.current) {
prevSrcRef.current = src;
// Reset error when src changes to allow retry
// eslint-disable-next-line react-hooks/set-state-in-effect
setAvatarError(false);
}
}, [src]);