Skip to content

Commit

Permalink
fix: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcw780 committed Jul 11, 2020
1 parent feb7e5e commit 21fcf9b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/ShellForms/DefaultForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ export class DefaultShips extends React.PureComponent
oldOption.lastIndexOf("(") + 1, oldOption.lastIndexOf(")")
));
let found = false;
for(let i=0; i<options.length; i++) {
const option = options[i];
for(const [i, option] of options.entries()) {
const tier = parseInt(option.substring(
option.lastIndexOf("(") + 1, option.lastIndexOf(")")
));
Expand All @@ -140,9 +139,7 @@ export class DefaultShips extends React.PureComponent
break;
}
}
if(!found){
newValue = values[0];
}
if(!found) newValue = values[0];
}
}
targetData[S.DefaultDataRowI.options] = options;
Expand Down

0 comments on commit 21fcf9b

Please sign in to comment.