File tree
Expand file treeCollapse file tree1 file changed
+7
-9
lines changed Expand file treeCollapse file tree1 file changed
+7
-9
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -439,23 +439,21 @@ function showEmployeeList(employees) {
|
439 | 439 | employees.forEach((employee) => {
|
440 | 440 | const expectedSalary = employee.calculateExpectedSalary();
|
441 | 441 | const experience = employee.getExperience();
|
| 442 | + |
| 443 | +let data = { |
| 444 | +expectedSalary, |
| 445 | +experience |
| 446 | +}; |
442 | 447 |
|
443 |
| -let portfolio; |
444 | 448 | switch (employee.type) {
|
445 | 449 | case 'manager':
|
446 |
| -portfolio = employee.getMBAProjects(); |
| 450 | +data.portfolio = employee.getMBAProjects(); |
447 | 451 | break;
|
448 | 452 | case 'developer':
|
449 |
| -portfolio = employee.getLink(); |
| 453 | +data.Link = employee.getLink(); |
450 | 454 | break;
|
451 | 455 | }
|
452 | 456 |
|
453 |
| -const data = { |
454 |
| -expectedSalary, |
455 |
| -experience, |
456 |
| -portfolio |
457 |
| -}; |
458 |
| - |
459 | 457 | render(data);
|
460 | 458 | });
|
461 | 459 | }
|
|
You can’t perform that action at this time.
0 commit comments