adrianhajdin / banking

Horizon is a modern banking platform for everyone.
https://banking-jet.vercel.app
MIT License
1.9k stars 574 forks source link

Cannot read properties of null (reading 'name') #25

Closed bustillos83 closed 3 months ago

bustillos83 commented 3 months ago

Not sure what i am doing wrong but cannot pass this issue, everything seems fine but I keep getting runtime error.

Error: Cannot read properties of null (reading 'name')

Source components\ui\RightSidebar.tsx (14:68) @ name

12 |

13 |

14 {user.name[0]}
15
16
17
albertomtferreira commented 3 months ago

Hi @bustillos83, share your repository and maybe someone will be able to help you.

bustillos83 commented 3 months ago
bustillos83 commented 3 months ago

Screenshot 2024-06-17 154810

albertomtferreira commented 3 months ago

Hi @bustillos83, see the commit that I sent to you.

Also, while on early stages, I would suggest you to move all components out of the /ui folder. Leaving that folder only for the shadcn ui.

bustillos83 commented 3 months ago

I saw the commit and thank you, the problem is when I do that, there is no error anymore but no data is being pulled either. Screenshot 2024-06-18 002035

bustillos83 commented 3 months ago

stays on guess instead of showing up the login user

bustillos83 commented 3 months ago

I fixed the issue, it was a typo, i had 'appwtrite-session' in my user actions instead of 'appwrite-session'.