Skip to content

Commit 1b4532d

Browse files
committed
Prettier
1 parent 9605f49 commit 1b4532d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

refactor/src/components/Product/SingleProduct.component.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import LoadingSpinner from '@/components/LoadingSpinner/LoadingSpinner.component
1717
const SingleProduct = ({ product }: any) => {
1818
const [isLoading, setIsLoading] = useState<boolean>(true);
1919
const [selectedVariation, setSelectedVariation] = useState<string>();
20-
let DESCRIPTION_WITHOUT_HTML
20+
let DESCRIPTION_WITHOUT_HTML;
2121

2222
useEffect(() => {
2323
setIsLoading(false);
@@ -42,11 +42,11 @@ const SingleProduct = ({ product }: any) => {
4242
}
4343

4444
// 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;
5050
}
5151

5252
const placeholderFallBack = 'https://via.placeholder.com/600';

0 commit comments

Comments
 (0)