You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While making a new admin of an organization .There is a creatorCheck which checks if the userId from token is equal to the creator id in Organization. But there is a bug in approch where the check is being made, We are comparing creator with userId but initially the creator id is of type object and userId is of type string so even if there values are same ,they will not pass the test because there datatypes are different.
Console log shows the datatypes are different
There is also a need to change some console log messages , at some places they are not giving relevant information.
Steps to resolve
If we change the data type of creator to staring the problem can be resolved.
Describe the bug
While making a new admin of an organization .There is a creatorCheck which checks if the userId from token is equal to the creator id in Organization. But there is a bug in approch where the check is being made, We are comparing creator with userId but initially the creator id is of type object and userId is of type string so even if there values are same ,they will not pass the test because there datatypes are different.
Console log shows the datatypes are different
There is also a need to change some console log messages , at some places they are not giving relevant information.
Steps to resolve
If we change the data type of creator to staring the problem can be resolved.
Can i work on this issue @Sagar2366 Sir.
The text was updated successfully, but these errors were encountered: