cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
3 stars 0 forks source link

Make Chat box scroll into view on send. #114

Closed hiyaryan closed 9 months ago

hiyaryan commented 9 months ago

This PR patches a ux inconvenience where the chat box doesn't put in view the most recent message after retrieving a new one. This PR fixes it my adding hasSent to useEffect in the Chat component.