Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 18, 2024
1 parent befee3a commit 270dd8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/theme/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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',
);
Expand Down

0 comments on commit 270dd8c

Please sign in to comment.