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)));