I think it's better to have an explicit, TypeScript-friendly is_first_launch check instead of using the obscure JSON.parse variant. Besides that, loose equality operator (double equals) is generally not recommended and it's even disabled with linter rules.
It would be even better to not have the string "true" in is_first_launch type but I don't know why it was done this way.
I think it's better to have an explicit, TypeScript-friendly
is_first_launch
check instead of using the obscureJSON.parse
variant. Besides that, loose equality operator (double equals) is generally not recommended and it's even disabled with linter rules.It would be even better to not have the string
"true"
inis_first_launch
type but I don't know why it was done this way.