From 270dd8c33b2f21431e5537557f6a614764d2fc4b Mon Sep 17 00:00:00 2001 From: Barsnes Date: Tue, 18 Jun 2024 14:36:47 +0200 Subject: [PATCH] fix linting errors --- apps/theme/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/theme/app/page.tsx b/apps/theme/app/page.tsx index 34731b2999..80e8fb769a 100644 --- a/apps/theme/app/page.tsx +++ b/apps/theme/app/page.tsx @@ -139,7 +139,7 @@ export default function Home() { * @returns The color from the query or the default color */ const getQueryColor = (colorType: ColorType, returnColor: CssColor) => { - const queryColor = params.get(colorType as ColorType); + const queryColor = params.get(colorType); if (queryColor && isHexColor(queryColor.substring(1))) { return queryColor as CssColor; } else { @@ -211,7 +211,7 @@ export default function Home() { */ const getColorError = (scale: ColorInfo[]) => { const contrast = areColorsContrasting( - scale[8].hex as CssColor, + scale[8].hex, '#ffffff', 'decorative', );