This commit is contained in:
Isaac 2025-10-15 17:06:43 +08:00
commit babf5cc9d7
2 changed files with 3 additions and 3 deletions

View file

@ -14973,7 +14973,6 @@ Sorry for the inconvenience.";
"Gift.Value.MinimumPriceInfo" = "**%1$@** is the floor price for %2$@ gifts listed on Telegram and Fragment.";
"Gift.Value.AveragePriceInfo" = "**%1$@** is the average sale price for %2$@ gifts listed on Telegram and Fragment over the past month.";
"Gift.Value.AveragePrice" = "Last Sale";
"Gift.Value.InitialSale" = "Initial Sale";
"Gift.Value.InitialPrice" = "Initial Price";
"Gift.Value.LastSale" = "Last Sale";

View file

@ -4561,11 +4561,12 @@ private final class GiftViewSheetContent: CombinedComponent {
while j < suffix.endIndex, suffix[j].isNumber {
j = suffix.index(after: j)
}
if let value = Int(suffix[i..<j]) {
let string = suffix[i..<j]
if let value = Int(string) {
buttonAnimatedTitleItems.append(
AnimatedTextComponent.Item(
id: AnyHashable(buttonAnimatedTitleItems.count),
content: .number(value, minDigits: 1)
content: .number(value, minDigits: string.count)
)
)
}