social-platform-donut-frontend icon indicating copy to clipboard operation
social-platform-donut-frontend copied to clipboard

[Bug Report] Deactivate section not showing correct button

Open codetheorem opened this issue 5 years ago • 4 comments

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 avatar Sep 06 '20 18:09 codetheorem

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

codetheorem avatar Sep 06 '20 18:09 codetheorem

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

Rupeshiya avatar Sep 07 '20 05:09 Rupeshiya

@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.

codetheorem avatar Sep 07 '20 05:09 codetheorem

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

Rupeshiya avatar Sep 08 '20 04:09 Rupeshiya