mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -342,13 +342,16 @@ class GeneralChartComponentController: ChartThemeContainer {
|
||||
visible: chartVisibility[index])
|
||||
}
|
||||
|
||||
if let currency, let firstValue = values.first, let color = GColor(hexString: "#dda747") {
|
||||
if let currency, let firstValue = values.first, let starColor = GColor(hexString: "#dda747") {
|
||||
let updatedTitle: String
|
||||
let color: GColor
|
||||
switch currency {
|
||||
case .ton:
|
||||
updatedTitle = self.strings.revenueInTon
|
||||
color = firstValue.color
|
||||
case .xtr:
|
||||
updatedTitle = self.strings.revenueInStars
|
||||
color = starColor
|
||||
}
|
||||
values[0] = ChartDetailsViewModel.Value(
|
||||
prefix: nil,
|
||||
|
||||
Reference in New Issue
Block a user