fix(web): конвертировать тарифы VPS в базовую валюту настроек
Docker / build (push) Failing after 21s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-29 15:19:22 +07:00
co-authored by Cursor
parent 9a29d88b95
commit 60332db1e4
3 changed files with 20 additions and 4 deletions
+5
View File
@@ -305,6 +305,11 @@ export function formatInProviderCurrency(
appSettings: Settings[] | Settings | null,
ratesData: RatesData | null,
): string {
const settings: Partial<Settings> = Array.isArray(appSettings)
? (appSettings[0] ?? {})
: (appSettings ?? {})
const autoConvert = settings.autoConvert !== false
if (!autoConvert) return formatCurrency(amount, currency)
const converted = convertWithProviderRate(amount, currency, provider, appSettings, ratesData)
return formatCurrency(converted.value, converted.currency)
}