mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +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 this.toString();
|
||||
return this.toString().toLowerCase();
|
||||
}
|
||||
|
||||
public static WalletModel fromType(String type) {
|
||||
for(WalletModel model : values()) {
|
||||
if(model.getType().equals(type)) {
|
||||
if(model.getType().equalsIgnoreCase(type)) {
|
||||
return model;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue