diff --git a/src/lib/server/services/file.ts b/src/lib/server/services/file.ts index 1f7f34f..d0b35ef 100644 --- a/src/lib/server/services/file.ts +++ b/src/lib/server/services/file.ts @@ -114,7 +114,7 @@ export const uploadFile = async ( try { const hashStream = createHash("sha256"); - const [_, hash] = await Promise.all([ + const [, hash] = await Promise.all([ pipeline( encContentStream, async function* (source) { @@ -127,7 +127,7 @@ export const uploadFile = async ( ), encContentHash, ]); - if (hashStream.digest("base64") != hash) { + if (hashStream.digest("base64") !== hash) { throw new Error("Invalid checksum"); } diff --git a/src/routes/(fullscreen)/+layout.svelte b/src/routes/(fullscreen)/+layout.svelte index d320930..9426a87 100644 --- a/src/routes/(fullscreen)/+layout.svelte +++ b/src/routes/(fullscreen)/+layout.svelte @@ -4,6 +4,6 @@ let { children } = $props(); - + {@render children()} diff --git a/src/routes/(main)/BottomBar.svelte b/src/routes/(main)/BottomBar.svelte index 51d5d2d..60c2b24 100644 --- a/src/routes/(main)/BottomBar.svelte +++ b/src/routes/(main)/BottomBar.svelte @@ -21,10 +21,12 @@
{#each pages as { path, label, icon: Icon }} - {@const textColor = !page.url.pathname.startsWith(path) ? "text-gray-600" : ""}