Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ChannelTabs] Issue: Discord crash when trying to use account switch feature #115

Open
sunnniee opened this issue Dec 23, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sunnniee
Copy link

Before you submit an issue please restart your discord. If the issue is still there feel free to write a bug report.

Describe the bug
Discord crashes every time you try to switch an account with the new account switch feature

To Reproduce
Steps to reproduce the behavior:

  1. Try to switch your account (click on profile picture on bottom left, and select an account)
  2. Discord crashes.

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.
Please also check the console by pressing Ctrl + Shift + I and send screenshots of errors (red messages)
image

Information (please complete the following information):

  • OS: Windows 10 21H1 (OS Build 19043.1288)
  • Plugin Version: 2.5.7
  • Discord version: PTB
  • Compact Mode enabled? no

Additional context
issue is with line 1132, const selfId = UserStore.getCurrentUser().id;. using optional chaining (UserStore.getCurrentUser()?.id) fixes this issue, thing is i have no idea how to use github or merge a pr

@sunnniee sunnniee added the bug Something isn't working label Dec 23, 2021
@gumbarros
Copy link
Contributor

@ActuallyTheSun I will create a PR bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants