Skip to content

Commit a496ac8

Browse files
author
Akos Kitta
committed
fix: better variable name
1 parent 1dbeb70 commit a496ac8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduino-ide-extension/src/browser/dialogs/certificate-uploader/select-board-components.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const SelectBoardComponent = ({
5353
});
5454
let selBoard = -1;
5555

56-
const boardsList: BoardOption[] = updatableBoards.map((item, i) => {
56+
const boardOptions: BoardOption[] = updatableBoards.map((item, i) => {
5757
if (selectedItem === item) {
5858
selBoard = i;
5959
}
@@ -71,21 +71,21 @@ export const SelectBoardComponent = ({
7171
};
7272
});
7373

74-
if (boardsList.length === 0) {
74+
if (boardOptions.length === 0) {
7575
placeholderTxt = nls.localize(
7676
'arduino/certificate/noSupportedBoardConnected',
7777
'No supported board connected'
7878
);
7979
}
8080

8181
setSelectBoardPlaceholder(placeholderTxt);
82-
setSelectOptions(boardsList);
82+
setSelectOptions(boardOptions);
8383

8484
if (selectedItem) {
8585
selBoard = updatableBoards.indexOf(selectedItem);
8686
}
8787

88-
selectOption(boardsList[selBoard] || null);
88+
selectOption(boardOptions[selBoard] || null);
8989
}, [busy, boardList, selectOption, updatableFqbns, selectedItem]);
9090
return (
9191
<ArduinoSelect

0 commit comments

Comments
 (0)