You've already forked RekomenciMobile
<type>(scope): <description>
[body] [footer(s)]
This commit is contained in:
@@ -25,8 +25,8 @@ fun EducationGrades.toReadableText(): String = when (this) {
|
||||
|
||||
fun Pair<Float?, Float?>?.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 -> "н/д"
|
||||
}
|
||||
Reference in New Issue
Block a user