I have a use case where I'm showing data from an API. If there is no data for that field, I'm showing a hyphen. in some cases where API returns 0 as a value, the UI would still show a hyphen.
const value = APIValue || '-'
In the above case, How do we show 0 instead of the hyphen when the input is 0?