Skip to content

Commit aaf436a

Browse files
committed
update dropdown with selected option
1 parent 9758406 commit aaf436a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/problems-by-company/company.ts

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ async function addCompaniesToSelect() {
150150
const option = document.createElement('option');
151151
option.value = company;
152152
option.text = company;
153+
if (company === companyName) {
154+
option.selected = true;
155+
}
153156
companySelect.appendChild(option);
154157
});
155158

@@ -160,6 +163,7 @@ async function addCompaniesToSelect() {
160163
});
161164
}
162165

166+
163167
function sortBy(column: string) {
164168
if (column === 'Score') {
165169
solutions.sort((a, b) => b.score - a.score);

0 commit comments

Comments
 (0)