-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This logic check belongs in a useEffect hook
Moodify/client/src/components/AvatarPage.js
Lines 23 to 27 in 6a88559
| if (mood && !affirmations.length) { | |
| getAffirmations(); | |
| } else if (affirmations[0].mood_id !== mood.id) { | |
| getAffirmations(); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels