Skip to content

Commit 62c96ce

Browse files
[FSSDK-11197] condition improvement
1 parent 97466e4 commit 62c96ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/event_tag_utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function getRevenueValue(eventTags: EventTags, logger?: LoggerFacade): nu
4444
return null;
4545
}
4646

47-
const parsedRevenueValue = typeof rawValue === 'string' ? parseInt(rawValue) : rawValue;
47+
const parsedRevenueValue = typeof rawValue === 'string' ? parseInt(rawValue) : Math.trunc(rawValue);
4848

4949
if (isFinite(parsedRevenueValue)) {
5050
logger?.info(PARSED_REVENUE_VALUE, parsedRevenueValue);

0 commit comments

Comments
 (0)