Skip to content

Commit 55d90ab

Browse files
[FSSDK-11197] condition improvement
1 parent 2c23443 commit 55d90ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/event_tag_utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getRevenueValue(eventTags: EventTags, logger: LoggerFacade): num
4141
return null;
4242
}
4343

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

4646
if (isFinite(parsedRevenueValue)) {
4747
logger.log(LOG_LEVEL.INFO, LOG_MESSAGES.PARSED_REVENUE_VALUE, MODULE_NAME, parsedRevenueValue);

0 commit comments

Comments
 (0)