Skip to content

Commit

Permalink
refactor: improve array access semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Dec 12, 2024
1 parent 3d91f93 commit 70d6565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CurrencySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function CurrencySelect<const T extends string>({
name,
items,
value: controlledValue,
defaultValue = controlledValue === undefined ? items[0] : undefined,
defaultValue = controlledValue === undefined ? items.at(0) : undefined,
searchPlaceholder = "Search by name or country…",
searchMatcher = defaultSearchMatcher,
onChange,
Expand Down
2 changes: 1 addition & 1 deletion src/content/quoteRecords/_scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const workbook = XLSX.read(data, {
cellText: false,
cellHTML: false,
});
const sheetName = workbook.SheetNames[0];
const sheetName = workbook.SheetNames.at(0);
const sheet = sheetName != null ? workbook.Sheets[sheetName] : undefined;

if (sheet == null) {
Expand Down

0 comments on commit 70d6565

Please sign in to comment.