From c3c0b83323ca575e80664e1ffc9b8f51aff63e1f Mon Sep 17 00:00:00 2001 From: Hirad Date: Wed, 28 Jun 2023 13:20:24 +0800 Subject: [PATCH 1/4] fix: fixed the issue where the user could not trade in the deriv EZ platform --- .../cfd/src/Stores/Modules/CFD/cfd-store.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/cfd/src/Stores/Modules/CFD/cfd-store.js b/packages/cfd/src/Stores/Modules/CFD/cfd-store.js index bd38722f3b7d..6b1ba16564d8 100644 --- a/packages/cfd/src/Stores/Modules/CFD/cfd-store.js +++ b/packages/cfd/src/Stores/Modules/CFD/cfd-store.js @@ -126,15 +126,14 @@ export default class CFDStore extends BaseStore { } ); - // todo: uncomment this once derivez tokens are ready - // reaction( - // () => [this.root_store.client.derivez_accounts_list], - // () => { - // if (this.root_store.client.derivez_accounts_list.length > 0) { - // this.loadDerivezTokens(); - // } - // } - // ); + reaction( + () => [this.root_store.client.derivez_accounts_list], + () => { + if (this.root_store.client.derivez_accounts_list.length > 0) { + this.loadDerivezTokens(); + } + } + ); } get account_title() { From 91f09373e1b863731a3f34f8669386a8f2f54904 Mon Sep 17 00:00:00 2001 From: Hirad Date: Wed, 28 Jun 2023 13:28:22 +0800 Subject: [PATCH 2/4] fix: changed the URL of Deriv EZ --- packages/cfd/src/Helpers/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cfd/src/Helpers/constants.ts b/packages/cfd/src/Helpers/constants.ts index fdad551a2643..c53bec4b320d 100644 --- a/packages/cfd/src/Helpers/constants.ts +++ b/packages/cfd/src/Helpers/constants.ts @@ -120,7 +120,7 @@ const getDerivEzWebTerminalLink = (category: string, token?: string) => { let url = DERIVEZ_URL; if (token) { - url += `?token=${token}`; + url += `?lang=en&token=${token}`; } return url; From 1b9b9de5ca62507b8904af9c19a944d459052c27 Mon Sep 17 00:00:00 2001 From: Hirad Date: Wed, 28 Jun 2023 13:45:08 +0800 Subject: [PATCH 3/4] fix: adding empty commit to pass the tests From d2980e7ca6588a3983502a506d262cc2803f9aac Mon Sep 17 00:00:00 2001 From: Hirad Date: Wed, 28 Jun 2023 14:12:56 +0800 Subject: [PATCH 4/4] fix: rerunning the tests