File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
refactor/src/components/Product Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import LoadingSpinner from '@/components/LoadingSpinner/LoadingSpinner.component
17
17
const SingleProduct = ( { product } : any ) => {
18
18
const [ isLoading , setIsLoading ] = useState < boolean > ( true ) ;
19
19
const [ selectedVariation , setSelectedVariation ] = useState < string > ( ) ;
20
- let DESCRIPTION_WITHOUT_HTML
20
+ let DESCRIPTION_WITHOUT_HTML ;
21
21
22
22
useEffect ( ( ) => {
23
23
setIsLoading ( false ) ;
@@ -42,11 +42,11 @@ const SingleProduct = ({ product }: any) => {
42
42
}
43
43
44
44
// Strip out HTML from description
45
- if ( process . browser ) {
46
- DESCRIPTION_WITHOUT_HTML = new DOMParser ( ) . parseFromString (
47
- description ,
48
- 'text/html'
49
- ) . body . textContent ;
45
+ if ( process . browser ) {
46
+ DESCRIPTION_WITHOUT_HTML = new DOMParser ( ) . parseFromString (
47
+ description ,
48
+ 'text/html'
49
+ ) . body . textContent ;
50
50
}
51
51
52
52
const placeholderFallBack = 'https://via.placeholder.com/600' ;
You can’t perform that action at this time.
0 commit comments