Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

Fix incorrect negative number formatting in formatStarsAmountText

Open HxShard opened this issue 1 year ago • 2 comments

This commit addresses an issue in the formatStarsAmountText function where negative values were incorrectly formatted, resulting in outputs like -,127,380. The bug occurred because the negative sign from the original number was retained by the formatter, and no additional logic corrected its placement.

HxShard avatar Apr 10 '25 12:04 HxShard

image

HxShard avatar Apr 10 '25 13:04 HxShard

Thanks for this PR, Could you please resolve conflicts with base branch? And also is this PR linked with any issue number?

ankushkushwaha avatar May 14 '25 15:05 ankushkushwaha