Skip to content

Commit 81d5820

Browse files
committed
Fixed hooks in inspection capture web
1 parent d623535 commit 81d5820

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/inspection-capture-web/src/hooks/useColorBackground.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ export function useColorBackground(opacity = 0.64) {
99

1010
const clampedOpacity = Math.max(0, Math.min(opacity, 1));
1111

12-
return useMemo(() => changeAlpha(palette.background.base, opacity), [palette, clampedOpacity]);
12+
return useMemo(
13+
() => changeAlpha(palette.background.base, clampedOpacity),
14+
[palette, clampedOpacity],
15+
);
1316
}

0 commit comments

Comments
 (0)