mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 02:26:44 +00:00
handle casing on types
This commit is contained in:
parent
cbffaf3e41
commit
019a3cf34f
1 changed files with 2 additions and 2 deletions
|
@ -12,12 +12,12 @@ public enum WalletModel {
|
||||||
return "trezor";
|
return "trezor";
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.toString();
|
return this.toString().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static WalletModel fromType(String type) {
|
public static WalletModel fromType(String type) {
|
||||||
for(WalletModel model : values()) {
|
for(WalletModel model : values()) {
|
||||||
if(model.getType().equals(type)) {
|
if(model.getType().equalsIgnoreCase(type)) {
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue