PlacementMNIT
PlacementMNIT copied to clipboard
RED FLAG flashes
Describe the bug Red-Flag flashes and vanishes when clicked on "Red Flag History" under "User Profile"
To Reproduce Steps to reproduce the behavior:
- Expand the side drawer by clicking Hamburger button.
- Expand the "User Profile" section.
- Click on "Red Flag History" option.
- See error (a Red Flag flashes and disappears. )
Expected behavior No Red Flag should flash if user dose not have any.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop
- OS: [POP-OS]
- Browser [chromium web browser]
- Version [83.0.4103.116]
Additional context This bud may only be visible when the user have no Red Flags.
Thanks @rishabhlingam for pointing it out. This is actually happening as fetching user red flags from db takes ~1 or 2 seconds and for that time span, browser is showing by default set red flag which is 3. Better solution would be to hide the red flag count completely till the data comes.
If you can fix it, would be great.