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

[Bug Report] Deactivate section not showing correct button #599

Open
codetheorem opened this issue Sep 6, 2020 · 4 comments
Open

[Bug Report] Deactivate section not showing correct button #599

codetheorem opened this issue Sep 6, 2020 · 4 comments

Comments

@codetheorem
Copy link

screencapture-localhost-3000-settings-1599414947725

My account is activated but it is showing Activate rather it should show Deactivate.

check this

> { isActivated === true ? "Deactivate" : "Activate" }

@codetheorem
Copy link
Author

I think this is because of the model of the user we are using in our backend.
https://github.com/codeuino/social-platform-donut-backend/blob/43ee99b3b547c0bea9a398458cb082b548fea41a/app/models/User.js#L208

@Rupeshiya
Copy link
Member

Rupeshiya commented Sep 7, 2020

@codetheorem Can you please check your db ?
If that is activated in your db or not?
Please check by toggling in the DB

@codetheorem
Copy link
Author

@Rupeshiya There is no problem with the frontend it is working when I toggle isActivated from false to true.
I think it is from the backend side.

@Rupeshiya
Copy link
Member

@codetheorem What's the issue??
Can you please check your user db for activation or deactivation??

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

No branches or pull requests

2 participants