Skip to content

Commit

Permalink
Merge pull request #6207 from ghubstan/fix-gettrades-category-param-u…
Browse files Browse the repository at this point in the history
…ppercase-bug

Fix API CLI gettrades bug: category param can be uppercase
  • Loading branch information
ripcurlx authored May 16, 2022
2 parents 52b1e13 + b3e6160 commit 5ff04a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/main/java/bisq/cli/opts/GetTradesOptionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public GetTradesOptionParser parse() {
}

public GetTradesRequest.Category getCategory() {
String cliOpt = options.valueOf(categoryOpt);
return CATEGORY.valueOf(cliOpt).grpcRequestCategory;
String categoryOpt = options.valueOf(this.categoryOpt).toLowerCase();
return CATEGORY.valueOf(categoryOpt).grpcRequestCategory;
}
}

0 comments on commit 5ff04a1

Please sign in to comment.