Skip to content

Commit

Permalink
vinvoor: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Aug 22, 2024
1 parent 84ce20d commit ca71988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vinvoor/src/types/scans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const scanCardHeadCells: readonly TableHeadCell<ScanCard>[] = [
label: "Card",
align: "right",
padding: "normal",
convert: (value?: Card) => value?.name || (value?.serial ?? "Unknown"),
convert: (value?: Card) => value?.name ?? (value?.serial ?? "Unknown"),
} as TableHeadCell<ScanCard>,
];

Expand Down
2 changes: 1 addition & 1 deletion vinvoor/src/util/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ const _fetch = async <T, U>(
? response.json()
: response.text();
})
.then(data => (convertData ? convertData(data) : (data as T)));
.then(data => (convertData ? convertData(data as U) : (data as T)));

0 comments on commit ca71988

Please sign in to comment.