Skip to content

Commit

Permalink
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
Browse files Browse the repository at this point in the history
…ts-migration-parent
  • Loading branch information
shayan-deriv committed Nov 10, 2022
2 parents d33c89d + 7c44fde commit d9f64ee
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
1 change: 0 additions & 1 deletion packages/p2p/src/components/buy-sell/buy-sell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const BuySell = () => {
return () => {
disposeIsListedReaction();
disposeAdvertIntervalReaction();
buy_sell_store.setLocalCurrency(null);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down
3 changes: 3 additions & 0 deletions packages/p2p/src/stores/buy-sell-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ export default class BuySellStore extends BaseStore {
is_sort_dropdown_open: observable,
is_submit_disabled: observable,
items: observable,
local_currencies: observable,
local_currency: observable,
payment_info: observable,
receive_amount: observable,
search_results: observable,
search_term: observable,
selected_ad_state: observable,
selected_local_currency: observable,
selected_payment_method_value: observable,
selected_payment_method_text: observable,
selected_value: observable,
Expand Down
7 changes: 5 additions & 2 deletions packages/p2p/src/stores/general-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class GeneralStore extends BaseStore {
advertiser_sell_limit: observable,
block_unblock_user_error: observable,
balance: observable,
feature_level: observable,
inactive_notification_count: observable,
is_advertiser: observable,
is_advertiser_blocked: observable,
Expand Down Expand Up @@ -475,7 +476,7 @@ export default class GeneralStore extends BaseStore {
};

this.disposeLocalCurrencyReaction = reaction(
() => this.root_store.buy_sell_store.local_currency,
() => [this.root_store.buy_sell_store.local_currency, this.active_index],
() => {
this.subscribeToLocalCurrency();
}
Expand All @@ -489,14 +490,16 @@ export default class GeneralStore extends BaseStore {

subscribeToLocalCurrency() {
const { floating_rate_store, buy_sell_store } = this.root_store;
const client_currency = this.client.local_currency_config?.currency;

this.ws_subscriptions?.exchange_rate_subscription?.unsubscribe?.();
this.ws_subscriptions.exchange_rate_subscription = subscribeWS(
{
exchange_rates: 1,
base_currency: this.client.currency,
subscribe: 1,
target_currency: buy_sell_store.local_currency ?? this.client.local_currency_config?.currency,
target_currency:
this.active_index > 0 ? client_currency : buy_sell_store.local_currency ?? client_currency,
},
[floating_rate_store.fetchExchangeRate]
);
Expand Down
26 changes: 13 additions & 13 deletions packages/translations/src/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@
"-1008641170": "ในขณะนี้บัญชีของคุณยังไม่จําเป็นต้องยืนยันที่อยู่ เราจะแจ้งให้คุณทราบในอนาคตหากจำเป็นต้องมีการยืนยันที่อยู่",
"-60204971": "เราไม่สามารถตรวจสอบยืนยันหลักฐานยืนยันที่อยู่ของคุณได้",
"-1944264183": "เพื่อดำเนินการซื้อขายต่อ คุณต้องส่งหลักฐานยืนยันตัวตน",
"-1088324715": "We’ll review your documents and notify you of its status within 1 - 3 working days.",
"-1088324715": "เราจะตรวจสอบเอกสารของคุณและแจ้งให้ทราบถึงสถานะของเอกสารภายใน 1-3 วันทำการ",
"-1176889260": "กรุณาเลือกประเภทเอกสาร",
"-1515286538": "กรุณาใส่หมายเลขเอกสารของคุณ ",
"-1785463422": "ยืนยันตัวตนของคุณ",
Expand Down Expand Up @@ -2095,7 +2095,7 @@
"-506510414": "วันที่และเวลา",
"-1708927037": "หมายเลขประจำเครื่องคอมพิวเตอร์",
"-80717068": "Apps you have linked to your <0>Deriv password:</0>",
"-2143208677": "Click the <0>Change password</0> button to change your Deriv MT5 password.",
"-2143208677": "คลิกปุ่ม <0>เปลี่ยนรหัสผ่าน</0> เพื่อเปลี่ยนรหัสผ่าน Deriv MT5 ของคุณ",
"-9570380": "ให้ใช้รหัสผ่าน {{platform_name_dxtrade}} เพื่อเข้าใช้บัญชี {{platform_name_dxtrade}} ของคุณบนเว็บและแอปมือถือ",
"-412891493": "ปิดการใช้งาน 2FA",
"-200487676": "เปิดใช้งาน",
Expand Down Expand Up @@ -2227,7 +2227,7 @@
"-757062699": "การโอนอาจจะไม่สามารถใช้ได้เนื่องจากความผันผวนสูงหรือปัญหาทางเทคนิคและเมื่อตลาดแลกเปลี่ยนปิดทำการ",
"-1344870129": "บัญชี Deriv",
"-1156059326": "คุณมีจำนวนครั้งสำหรับโอนเงินได้เหลือ {{number}} ครั้งสำหรับวันนี้",
"-1109729546": "You will be able to transfer funds between MT5 accounts and other accounts once your address is verified.",
"-1109729546": "คุณจะสามารถโอนเงินระหว่างบัญชี MT5 และบัญชีอื่นๆ ต่อเมื่อที่อยู่ของคุณได้รับการยืนยันแล้ว",
"-1593609508": "โอนเงินระหว่างบัญชีของคุณใน Deriv",
"-464965808": "วงเงินสำหรับการโอน: <0 /> - <1 />",
"-553249337": "การโอนถูกล็อค",
Expand Down Expand Up @@ -2616,13 +2616,13 @@
"-1125797291": "อัพเดทรหัสผ่านแล้ว",
"-157145612": "โปรดเข้าสู่ระบบด้วยรหัสผ่านล่าสุด",
"-1728185398": "ส่งหลักฐานที่อยู่อีกครั้ง",
"-1519764694": "Your proof of address is verified.",
"-1519764694": "หลักฐานยืนยันที่อยู่ของคุณได้รับการยืนยันแล้ว",
"-1961967032": "ส่งหลักฐานยืนยันตัวตนอีกครั้ง",
"-117048458": "Please submit your proof of identity.",
"-1196422502": "Your proof of identity is verified.",
"-136292383": "Your proof of address verification is pending",
"-386909054": "Your proof of address verification has failed",
"-430041639": "Your proof of address did not pass our verification checks, and we’ve placed some restrictions on your account. Please resubmit your proof of address.",
"-117048458": "โปรดส่งเอกสารหลักฐานการยืนยันตัวตนของคุณ",
"-1196422502": "หลักฐานยืนยันตัวตนของคุณได้รับการยืนยันแล้ว",
"-136292383": "การยืนยันหลักฐานที่อยู่ของคุณนั้นอยู่ระหว่างดำเนินการ",
"-386909054": "การยืนยันหลักฐานที่อยู่ของคุณนั้นล้มเหลว",
"-430041639": "หลักฐานที่อยู่ของคุณไม่ผ่านการตรวจสอบยืนยันของเรา และเราได้ตั้งข้อจำกัดบางอย่างให้กับบัญชีของคุณ ดังนั้นกรุณาส่งหลักฐานยืนยันที่อยู่ของคุณอีกครั้ง",
"-87177461": "โปรดไปที่การตั้งค่าบัญชีของคุณและกรอกรายละเอียดส่วนบุคคลของคุณเพื่อเปิดใช้งานการฝากเงิน",
"-904632610": "รีเซ็ตยอดเงินคงเหลือของคุณ",
"-470018967": "รีเซ็ตยอดเงินคงเหลือ",
Expand Down Expand Up @@ -2728,7 +2728,7 @@
"-1976089791": "Your Deriv account has been unlinked from your {{social_identity_provider}} account. You can now log in to Deriv using your new email address and password.",
"-505449293": "ป้อนรหัสผ่านใหม่สําหรับบัญชี Deriv ของคุณ",
"-703818088": "คุณต้องเข้าสู่ระบบบัญชีของคุณผ่านลิงก์ที่ปลอดภัยอันนี้เท่านั้น อย่าเข้ามาจากทางอื่น",
"-1235799308": "ลิงก์ปลอมมักจะมีคำที่ดูเหมือนว่า “Deriv” แต่มองออกไปสำหรับความแตกต่างเหล่านี้",
"-1235799308": "ลิงก์ปลอมมักจะมีคำที่ดูเหมือน “Deriv” แต่ขอให้คุณเฝ้าระวังดูข้อแตกต่างเหล่านี้",
"-2102997229": "ตัวอย่าง",
"-82488190": "ฉันได้อ่านข้อความข้างต้นอย่างระมัดระวังแล้ว",
"-97775019": "อย่าไว้วางใจและอย่าให้ข้อมูลประจำตัวของคุณแก่เวบไซต์ปลอม โฆษณาปลอม หรืออีเมล์ปลอม",
Expand Down Expand Up @@ -2867,10 +2867,10 @@
"-1793894323": "สร้างหรือรีเซ็ตรหัสผ่านนักลงทุน",
"-1271218821": "บัญชีที่เพิ่มเข้ามา",
"-1576792859": "ต้องแสดงหลักฐานยืนยันตัวตนและที่อยู่",
"-1931257307": "You will need to submit proof of identity",
"-2026018074": "Add your Deriv MT5 <0>{{account_type_name}}</0> account under Deriv (SVG) LLC (company no. 273 LLC 2020).",
"-1931257307": "คุณจำเป็นจะต้องส่งหลักฐานการยืนยันตัวตน",
"-2026018074": "เพิ่มบัญชี Deriv MT5 <0>{{account_type_name}}</0> ของคุณภายใต้ Deriv (SVG) LLC (หมายเลขบริษัท 273 LLC 2020)",
"-16048185": "ในการสร้างบัญชีนี้ ก่อนอื่นเราต้องการหลักฐานยืนยันตัวตนและที่อยู่ของคุณ",
"-162320753": "Add your Deriv MT5 <0>{{account_type_name}}</0> account under Deriv (BVI) Ltd, regulated by the British Virgin Islands Financial Services Commission (License no. SIBA/L/18/1114).",
"-162320753": "เพิ่มบัญชี Deriv MT5 <0>{{account_type_name}}</0> ของคุณภายใต้บริษัท Deriv (BVI) Ltd ซึ่งถูกควบคุมดูแลโดยคณะกรรมการบริการทางการเงินหมู่เกาะบริติชเวอร์จิน (ใบอนุญาตเลขที่ SIBA/L/18/1114)",
"-1731304187": "Add your Deriv MT5 CFDs account under Deriv Investments (Europe) Limited regulated by the Malta Financial Services Authority (MFSA) (licence no. IS/70156).",
"-1389025684": "ในการสร้างบัญชีนี้ ก่อนอื่นเราจำเป็นต้องให้คุณส่งหลักฐานยืนยันตัวตนและที่อยู่ของคุณอีกครั้ง",
"-1627989291": "ในการสร้างบัญชีนี้ ก่อนอื่นเราจำเป็นต้องให้คุณส่งหลักฐานยืนยันตัวตนของคุณอีกครั้ง",
Expand Down

0 comments on commit d9f64ee

Please sign in to comment.