mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-19 17:51:29 +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 {
|
public var stringValue: String {
|
||||||
return "\(totalValue)"
|
return totalValue.truncatingRemainder(dividingBy: 1) == 0 ? String(format: "%.0f", totalValue) : String(totalValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
public var totalValue: Double {
|
public var totalValue: Double {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user