handle casing on types

This commit is contained in:
Craig Raw 2020-04-29 16:50:52 +02:00
parent cbffaf3e41
commit 019a3cf34f

View file

@ -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;
}
}