File tree 1 file changed +3
-2
lines changed
src/javascript/app/pages/bottom
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect , useState } from 'react' ;
2
2
import parse from 'html-react-parser' ;
3
3
import { contractExplanationData } from './data/explanation.js' ;
4
- import { useContractChange } from '../../hooks/events' ;
4
+ import { useContractChange , useMarketChange } from '../../hooks/events' ;
5
5
import Defaults , { PARAM_NAMES } from '../trade/defaults' ;
6
6
import Language from '../../../_common/language' ;
7
7
import Url from '../../../_common/url' ;
@@ -13,6 +13,7 @@ export const Explanation = () => {
13
13
const [ formName , setFormName ] = useState ( '' ) ;
14
14
15
15
const hasContractChanges = useContractChange ( ) ;
16
+ const hasMarketChange = useMarketChange ( ) ;
16
17
17
18
useEffect ( ( ) => {
18
19
const contractObject = {
@@ -26,7 +27,7 @@ export const Explanation = () => {
26
27
27
28
setFormName ( finalFormName ) ;
28
29
29
- } , [ hasContractChanges ] ) ;
30
+ } , [ hasContractChanges , hasMarketChange ] ) ;
30
31
31
32
const image_path = Url . urlForStatic (
32
33
`images/pages/trade-explanation/${ language } /`
You can’t perform that action at this time.
0 commit comments