VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 69 forks source link

[Bug]: Showing the favourite status failed when style share is open in logout account #570

Closed MeetDOD closed 1 month ago

MeetDOD commented 1 month ago

Is there an existing issue for this?

Describe the bug

If you open in browser as a user without account this problem appears. So, I will put the condition to solve this issue.

Expected behavior

Backend problem

Add ScreenShots

https://github.com/user-attachments/assets/332154f8-0a23-4957-b270-7df34aca4837

On which device are you experiencing this bug?

Android, iPhone, Linux, Chrome, Windows

Record

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

VaibhavArora314 commented 1 month ago

I am unable to reproduce this. Can you please specify some more details like did you add some posts favorite before logging out.

MeetDOD commented 1 month ago

I am unable to reproduce this. Can you please specify some more details like did you add some posts favorite before logging out.

Copy the style share url and open it in the new account then their create accound in that new account mark some fav posts and then log out after that again reload the website you will see this issue !

VaibhavArora314 commented 1 month ago

I am unable to reproduce this. Can you please specify some more details like did you add some posts favorite before logging out.

Copy the style share url and open it in the new account then their create accound in that new account mark some fav posts and then log out after that again reload the website you will see this issue !

I tried this but was still not able to reproduce it. Try clearing local storage and check again on your system.

MeetDOD commented 1 month ago

I am unable to reproduce this. Can you please specify some more details like did you add some posts favorite before logging out.

Copy the style share url and open it in the new account then their create accound in that new account mark some fav posts and then log out after that again reload the website you will see this issue !

I tried this but was still not able to reproduce it. Try clearing local storage and check again on your system.

I tried on my friends laptop and in my college pc also, This error is showing up that's why I created the issue. If it is fine then no problem.

Thank you.

MeetDOD commented 1 month ago

@VaibhavArora314 so I do this or no ?

VaibhavArora314 commented 1 month ago

@VaibhavArora314 so I do this or no ?

Go ahead. Assigning level 2 for now may change depending on the actual bug.

MeetDOD commented 1 month ago

@VaibhavArora314 can you tell me where we used this api call ?

image

VaibhavArora314 commented 1 month ago

@VaibhavArora314 can you tell me where we used this api call ?

image

Probably in post card component, check in the codebase

MeetDOD commented 1 month ago

@VaibhavArora314 can you tell me where we used this api call ? image

Probably in post card component, check in the codebase

Bro I searched for 30 minute but i couldn't find it that's why I asked you :(

MeetDOD commented 1 month ago

@VaibhavArora314 I found that i was searching in post but it was in the postcard, my bad 😊

github-actions[bot] commented 1 month ago

Hello @MeetDOD! Your issue #570 has been closed. Thank you for your contribution!