From e7a92622e93563e8842ce9fd406c5c0b2eb6474d Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 9 Oct 2024 10:42:49 -0400 Subject: [PATCH] fix a ts error --- src/utils/Utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 40b38e3..d9b7017 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -84,7 +84,9 @@ export const getFileDetails = (fileOrAttachment: File | APIAttachment) => { export const isTauri = !!window.__TAURI_INTERNALS__; export function rgbToHsl(r: number, g: number, b: number) { - (r /= 255), (g /= 255), (b /= 255); + r /= 255; + g /= 255; + b /= 255; const max = Math.max(r, g, b), min = Math.min(r, g, b);