diff --git a/src/javascript/app/common/active_symbols.js b/src/javascript/app/common/active_symbols.js index 0deb78f4c4a..f683c2451a7 100644 --- a/src/javascript/app/common/active_symbols.js +++ b/src/javascript/app/common/active_symbols.js @@ -33,7 +33,7 @@ const marketOrder = [ 'synthetics', ]; -const derived = ['baskets','synthetics']; +const derived = ['baskets', 'synthetics']; const ActiveSymbols = (() => { const groupBy = (xs, key) => ( diff --git a/src/javascript/app/pages/bottom/data/explanation.js b/src/javascript/app/pages/bottom/data/explanation.js index f6136c43cb5..763d42e143e 100644 --- a/src/javascript/app/pages/bottom/data/explanation.js +++ b/src/javascript/app/pages/bottom/data/explanation.js @@ -225,11 +225,11 @@ export const contractExplanationData = { content: [ localize('The [_1]high[_2] is the highest point ever reached by the market during the contract period.', ['', '']), localize('The [_1]low[_2] is the lowest point ever reached by the market during the contract period.', ['', '']), - localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.',['', '']), + localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.', ['', '']), ], title_secondary : localize('Contract period') , content_secondary: [ - localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].',['', '']), + localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].', ['', '']), localize('The [_1]start time[_2] begins when the contract is processed by our servers.', ['', '']), localize('The [_1]end time[_2] is the selected number of minutes/hours after the [_1]start time[_2].', ['', '']), ], @@ -239,11 +239,11 @@ export const contractExplanationData = { content: [ localize('The [_1]high[_2] is the highest point ever reached by the market during the contract period.', ['', '']), localize('The [_1]low[_2] is the lowest point ever reached by the market during the contract period.', ['', '']), - localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.',['', '']), + localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.', ['', '']), ], title_secondary : localize('Contract period') , content_secondary: [ - localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].',['', '']), + localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].', ['', '']), localize('The [_1]start time[_2] begins when the contract is processed by our servers.', ['', '']), localize('The [_1]end time[_2] is the selected number of minutes/hours after the [_1]start time[_2].', ['', '']), ], @@ -253,11 +253,11 @@ export const contractExplanationData = { content: [ localize('The [_1]high[_2] is the highest point ever reached by the market during the contract period.', ['', '']), localize('The [_1]low[_2] is the lowest point ever reached by the market during the contract period.', ['', '']), - localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.',['', '']), + localize('The [_1]close[_2] is the latest tick at or before the [_1]end time[_2]. If you selected a specific [_1]end time,[_2] the [_1]end time[_2] is the selected time.', ['', '']), ], title_secondary : localize('Contract period') , content_secondary: [ - localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].',['', '']), + localize('The [_1]contract period[_2] is the period between the [_1]first tick[_2] (after start time) and the [_1]end time[_2].', ['', '']), localize('The [_1]start time[_2] begins when the contract is processed by our servers.', ['', '']), localize('The [_1]end time[_2] is the selected number of minutes/hours after the [_1]start time[_2].', ['', '']), ], diff --git a/src/javascript/app/pages/bottom/explanation.jsx b/src/javascript/app/pages/bottom/explanation.jsx index d069d64a9ad..5e8ddf5b4d2 100644 --- a/src/javascript/app/pages/bottom/explanation.jsx +++ b/src/javascript/app/pages/bottom/explanation.jsx @@ -22,7 +22,7 @@ export const Explanation = ({ explanationOnly = false }) => { setFormName(actualFormName); }, 500); - },[hasContractChanges]); + }, [hasContractChanges]); const language = Language.get(); const image_path = Url.urlForStatic( @@ -192,7 +192,7 @@ export const Explanation = ({ explanationOnly = false }) => { ); } - if (explanationOnly){ + if (explanationOnly) { return (
diff --git a/src/javascript/app/pages/loader.jsx b/src/javascript/app/pages/loader.jsx index c37ac570a04..d3c66892ae1 100644 --- a/src/javascript/app/pages/loader.jsx +++ b/src/javascript/app/pages/loader.jsx @@ -47,11 +47,11 @@ const Loader = () => { useEffect(() => { const hidePageLoader = dataManager.getContract('hidePageLoader'); - if (hidePageLoader){ + if (hidePageLoader) { setLoading(false); } - },[hasContractChange]); + }, [hasContractChange]); useEffect(() => { const handleLoad = () => { @@ -64,9 +64,9 @@ const Loader = () => { return () => { window.removeEventListener('load', handleLoad); }; - },[]); + }, []); - if (loading){ + if (loading) { return (
diff --git a/src/javascript/app/pages/trade/guide.jsx b/src/javascript/app/pages/trade/guide.jsx index d103c071e44..6341cc49291 100644 --- a/src/javascript/app/pages/trade/guide.jsx +++ b/src/javascript/app/pages/trade/guide.jsx @@ -14,7 +14,7 @@ const GuideBtn = () => { Guide.init({ script: 'trading', }); - },[]); + }, []); return (