From 1cf97cc62465acdbeef7db5da56cce401a215725 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Wed, 14 Feb 2024 12:17:10 -0800 Subject: [PATCH] catch a bug --- src/lib/ColorLint.ts | 1 - src/lib/api-calls.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/ColorLint.ts b/src/lib/ColorLint.ts index 77d3d1b3..05179837 100644 --- a/src/lib/ColorLint.ts +++ b/src/lib/ColorLint.ts @@ -21,7 +21,6 @@ export class ColorLint { checkData: CheckData; palette: Palette; message: string = ""; - config: { val?: ParamType } = {}; isCustom: false | string = false; group: string = ""; description: string = ""; diff --git a/src/lib/api-calls.ts b/src/lib/api-calls.ts index 470f02b1..5eb4f0c9 100644 --- a/src/lib/api-calls.ts +++ b/src/lib/api-calls.ts @@ -158,8 +158,8 @@ export function lint(pal: Palette) { type: "run-lint", content: JSON.stringify({ ...pal, - background: pal.background.toHex(), - colors: pal.colors.map((x) => x.toHex()), + background: pal.background.toString(), + colors: pal.colors.map((x) => x.toString()), }), }).then((x) => { return x as unknown as any[];