Skip to content

Commit

Permalink
fix pagcripto otc
Browse files Browse the repository at this point in the history
  • Loading branch information
itxtoledo committed Aug 10, 2023
1 parent c7fdb09 commit 54c1f7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@coinsamba/js-exchanges-connector",
"description": "Collection of JavaScript implementations of cryptocurrency exchange APIs",
"version": "2.1.6",
"version": "2.1.7",
"repository": "git@github.com:coinsambacom/js-exchanges-connector.git",
"author": "Gustavo <gustavo@obex.pw>",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/connectors/pagcripto_otc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export class pagcripto_otc<T = any> extends Exchange<T> {

const ticker = omit(res.otc_ticker, ["crypto"]);

const isValid = Object.values(ticker).every((value) => isNumber(value));
const isValid = Object.values(ticker).every((value) =>
isNumber(Number(value)),
);

if (!isValid) {
throw new ConnectorError(
Expand Down

0 comments on commit 54c1f7d

Please sign in to comment.