Skip to content

Commit

Permalink
refactor: remove case-sensitivity during network name search
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugo Amanoh committed Dec 17, 2019
1 parent c15b516 commit 0388ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/me/uport/sdk/core/Networks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ object Networks {
*/
private fun getNetworkByName(name: String): EthNetwork? {
for ((_, value) in NETWORK_CONFIG) {
if (value.name === name) {
if (value.name.toLowerCase() === name.toLowerCase()) {
return value
}
}
Expand Down

0 comments on commit 0388ef4

Please sign in to comment.