You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the recent update (40.0.0) I've noticed that #129 works for undefined values, but for data that is null the output will still populate as a value of 0.
This is due to the asNumber function. I know #129 removed some of the calls to this, but it didn't fix the root cause of the issue being the following:
asNumber(null)>>>0asNumber(undefined)>>>NaN
One fix for this is to update the asNumber function like so:
exportconstasNumber=(val: unknown): number=>{"worklet";if(val===null)returnNaNreturntypeofval==="number" ? val : Number(val);};
The text was updated successfully, but these errors were encountered:
Since the recent update (40.0.0) I've noticed that #129 works for
undefined
values, but for data that isnull
the output will still populate as a value of 0.This is due to the
asNumber
function. I know #129 removed some of the calls to this, but it didn't fix the root cause of the issue being the following:One fix for this is to update the
asNumber
function like so:The text was updated successfully, but these errors were encountered: