This commit is contained in:
Aditya Wasan
2021-02-11 16:45:51 +05:30
committed by Harsh Shandilya
parent 98866ee407
commit 1a6174b1c8
@@ -20,7 +20,7 @@ enum class Destination(
val startDestination = Hottest
fun getDestinationFromRoute(route: String): Destination {
return values().firstOrNull { it.route == route } ?: error("Incorrect route password")
return values().firstOrNull { it.route == route } ?: error("Incorrect route passed")
}
}
}