Skip to content

fix: Dashboard login loop#9

Merged
BenHall-1 merged 2 commits intoTicketsBot-cloud:masterfrom
DanPlayz0:fix/login-loop
Mar 5, 2025
Merged

fix: Dashboard login loop#9
BenHall-1 merged 2 commits intoTicketsBot-cloud:masterfrom
DanPlayz0:fix/login-loop

Conversation

@DanPlayz0
Copy link
Copy Markdown
Contributor

This PR fixes a bug related with users who do not have the bot in their personal servers. This is mostly a fix for self-hosted instances of the bot.

Cause

The bug is caused by the api by returning an object without the guilds property.

Fix

Initialize guilds in localStorage as an empty array ([]) if none are returned

This is a copied PR that was merged into V1

@BenHall-1 BenHall-1 changed the title Fix: Dashboard login loop fix: Dashboard login loop Mar 5, 2025
Copy link
Copy Markdown
Member

@BenHall-1 BenHall-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! LGTM 🎉

@BenHall-1 BenHall-1 merged commit a88acc2 into TicketsBot-cloud:master Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants