Skip to content

Commit 890b343

Browse files
refactor: implement curly rule on gtm (#1082)
1 parent bf07ded commit 890b343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/use-gtm/src/useGTM.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ function GTMProvider<T extends Events>({
6161
if (onLoadError) document.addEventListener(LOAD_ERROR_EVENT, onLoadError)
6262

6363
return () => {
64-
if (onLoadError)
64+
if (onLoadError) {
6565
document.removeEventListener(LOAD_ERROR_EVENT, onLoadError)
66+
}
6667
}
6768
}
6869

0 commit comments

Comments
 (0)