Hello. I’m making simple chat app and I encountered a bug with chatCard component loading avatar from previous conversation after writing to new person. You can see it on this video
For some reason ChatCard component renders username and lastMessage properly and avatar not. I tried various fixes with conditional rendering but it didn’t work. Maybe you have an idea?
Whole component code