From 4228ecf612ce315f6d0dacf3b3b3278cded20f57 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sun, 23 Nov 2025 15:33:36 +0300 Subject: [PATCH] (scope): [body] [footer(s)] --- .../prodhack/moscow2025/presentation/utils/dataUtils.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/prodhack/moscow2025/presentation/utils/dataUtils.kt b/app/src/main/java/com/prodhack/moscow2025/presentation/utils/dataUtils.kt index 09559bf..ee5c1cf 100644 --- a/app/src/main/java/com/prodhack/moscow2025/presentation/utils/dataUtils.kt +++ b/app/src/main/java/com/prodhack/moscow2025/presentation/utils/dataUtils.kt @@ -25,8 +25,8 @@ fun EducationGrades.toReadableText(): String = when (this) { fun Pair?.toSalaryRangeString(): String = when { this == null -> "Загрузка..." - first != null && second != null -> "${(first!!.roundToInt() / 1000) * 1000}₽ - ${(second!!.roundToInt() / 1000) * 1000}₽" - first != null -> "от ${(first!!.roundToInt() / 1000) * 1000}₽" - second != null -> "до ${(second!!.roundToInt() / 1000) * 1000}₽" - else -> "Ошибка" + first != null && second != null -> "${first!!.roundToInt()}₽ - ${second!!.roundToInt()}₽" + first != null -> "от ${first!!.roundToInt()}₽" + second != null -> "до ${second!!.roundToInt()}₽" + else -> "н/д" } \ No newline at end of file