Skip to content

Commit

Permalink
Fix parsing of inQuoteCurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
sudsy committed Oct 4, 2018
1 parent bc3ee04 commit 189a442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlers/getBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.handler = function getBalance(req, res, next) {
throw new AleError(`Book with id ${id} does not exist`, codes.BookDoesNotExist);
}
const { account, perPage, page } = req.query;
const inQuote = req.query.inQuoteCurrency !== false;
const inQuote = req.query.inQuoteCurrency !== "false";
return book.getBalance({ account, perPage, page }, inQuote);
}).then(balance => {
res.json(balance);
Expand Down

0 comments on commit 189a442

Please sign in to comment.