Join Slack
Communities
Powered by
Why does code give me an error?
# react
d
Dmitriy Malayev
06/18/2023, 10:06 PM
Why does code give me an error?
b
Big Chungus
06/18/2023, 11:06 PM
Because your input (empty string) cannot be parsed into number
Big Chungus
06/18/2023, 11:07 PM
Use toIntOrNull if you want null value for invalid inputs
d
Dmitriy Malayev
06/18/2023, 11:50 PM
Thanks
2
Views
Open in Slack
Previous
Next