From 3c88f55e662b29274d8bceb71c62d9ab701cc786 Mon Sep 17 00:00:00 2001 From: qingwei Date: Wed, 18 May 2016 09:35:41 +0800 Subject: [PATCH 1/2] Fix --- src/custom.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/custom.js b/src/custom.js index 6119356..a8322ac 100644 --- a/src/custom.js +++ b/src/custom.js @@ -108,8 +108,7 @@ export function getDataForContract( } return getContract() - .then(r => { - const contract = r.proposal_open_contract; + .then(contract => { const symbol = contract.underlying; const purchaseT = contract.purchase_time; const sellT = contract.sell_time; From 1e26b20906fd41852772a9e61ab5e4550634d578 Mon Sep 17 00:00:00 2001 From: qingwei Date: Wed, 18 May 2016 09:37:44 +0800 Subject: [PATCH 2/2] Bump up version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 47d2e72..6571133 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binary-live-api", - "version": "18.5.0", + "version": "18.6.0", "description": "Library to consume Binary.com WebSocket API", "main": "lib/binary-live-api.js", "devDependencies": {