Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-stone committed Jan 2, 2025
1 parent 280480c commit 781840a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/new-tab/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ const App: Component = () => {
}, [pageTitle]);

createEffect(() => {
if (wallpaperBlur() > 0) {
if (Number(wallpaperBlur()) > 0) {
document.getElementById("wallpaper")!.style.filter =
`blur(${Number(wallpaperBlur()) / 10}px)`;
}
}, [wallpaperBlur]);

createEffect(() => {
if (opacity() > 0) {
if (Number(opacity()) > 0) {
document.getElementById("wallpaper")!.style.opacity = opacity();
}
}, [opacity]);
Expand Down

0 comments on commit 781840a

Please sign in to comment.