Updated on 2026-08-14

This commit is contained in:
Tangem 2021-02-24 15:40:56 +03:00
parent d0b51e0566
commit e346c755c6
2 changed files with 6 additions and 7 deletions

View file

@ -37,10 +37,10 @@ class CardTou {
}
}
private fun regionCode(cardId: String): String? = when (cardId.substring(2..3)) {
"0" -> "fr"
"1" -> "ch"
"2" -> "at"
private fun regionCode(cardId: String): String? = when (cardId[1]) {
'0' -> "fr"
'1' -> "ch"
'2' -> "at"
else -> null
}
}