codeuino / social-platform-donut-frontend

This is an Open Source social Platform where people can interact with Open Source expertise around the globe and work on different projects
207 stars 220 forks source link

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

Open codetheorem opened 4 years ago

codetheorem commented 4 years ago

screencapture-localhost-3000-settings-1599414947725

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

check this https://github.com/codeuino/social-platform-donut-frontend/blob/77d028647a60d358f87dfd02e01d64b72cd67f5b/src/user/dashboard/settings/SettingContent.js#L186

codetheorem commented 4 years ago

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 commented 4 years ago

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

codetheorem commented 4 years ago

@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 commented 4 years ago

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