Closed oyedejioyewole closed 1 year ago
Your use of !== checked if the disableDefaultOptions was not equal to false and if it was production (meaning the condition was always going to be true) and didn't check if the disableDefaultOptions was a falsy value
!==
disableDefaultOptions
false
Your use of
!==
checked if thedisableDefaultOptions
was not equal tofalse
and if it was production (meaning the condition was always going to be true) and didn't check if thedisableDefaultOptions
was a falsy value