Simplifying if else

@yisrael-wix So some of these results will return a 0 for a new user, and when populating the chart, I get a NaN result when returning Number(0) or undefined when returning 0 from the backend function

Thus I need to create a simplified if else statement to set the value to 0 if the result is a string or undefined/null/etc…