mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-19 01:31:33 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
0775b1e7ed
@ -281,7 +281,7 @@ public struct StarsAmount: Equatable, Comparable, Hashable, Codable, CustomStrin
|
||||
}
|
||||
|
||||
public var stringValue: String {
|
||||
return "\(totalValue)"
|
||||
return totalValue.truncatingRemainder(dividingBy: 1) == 0 ? String(format: "%.0f", totalValue) : String(totalValue)
|
||||
}
|
||||
|
||||
public var totalValue: Double {
|
||||
|
Loading…
x
Reference in New Issue
Block a user