79094589

Date: 2024-10-16 14:49:37
Score: 2
Natty:
Report link

Isn't the real problem here that status is defined/typed wrong?

If you want to do status === DeclarationStatus.APPROVED_BY_FREELANCER...

then declare status with that type let status: DeclarationStatus.

This way no matter what the enum values are it will work.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Isn't the
  • Low reputation (1):
Posted by: William Guigue