Skip to content

Commit

Permalink
fix a ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Oct 9, 2024
1 parent 29405b7 commit e7a9262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7a9262

Please sign in to comment.