We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97466e4 commit 62c96ceCopy full SHA for 62c96ce
lib/utils/event_tag_utils/index.ts
@@ -44,7 +44,7 @@ export function getRevenueValue(eventTags: EventTags, logger?: LoggerFacade): nu
44
return null;
45
}
46
47
- const parsedRevenueValue = typeof rawValue === 'string' ? parseInt(rawValue) : rawValue;
+ const parsedRevenueValue = typeof rawValue === 'string' ? parseInt(rawValue) : Math.trunc(rawValue);
48
49
if (isFinite(parsedRevenueValue)) {
50
logger?.info(PARSED_REVENUE_VALUE, parsedRevenueValue);
0 commit comments