From ea4db6c450ba1bd7d3182cd8f9ef17ef39aa2789 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Thu, 22 Aug 2024 20:44:56 +0200 Subject: [PATCH] vinvoor: linting issues --- vinvoor/src/types/scans.ts | 2 +- vinvoor/src/util/fetch.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vinvoor/src/types/scans.ts b/vinvoor/src/types/scans.ts index 29707fa..be57630 100644 --- a/vinvoor/src/types/scans.ts +++ b/vinvoor/src/types/scans.ts @@ -46,7 +46,7 @@ export const scanCardHeadCells: readonly TableHeadCell[] = [ label: "Card", align: "right", padding: "normal", - convert: (value?: Card) => value?.name || (value?.serial ?? "Unknown"), + convert: (value?: Card) => value?.name ?? (value?.serial ?? "Unknown"), } as TableHeadCell, ]; diff --git a/vinvoor/src/util/fetch.ts b/vinvoor/src/util/fetch.ts index d28906d..d279fc2 100644 --- a/vinvoor/src/util/fetch.ts +++ b/vinvoor/src/util/fetch.ts @@ -68,4 +68,4 @@ const _fetch = async ( ? response.json() : response.text(); }) - .then(data => (convertData ? convertData(data) : (data as T))); + .then(data => (convertData ? convertData(data as U) : (data as T)));