Skip to content

Commit

Permalink
settings address discovery gap array make fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbca26 committed May 11, 2022
1 parent 495ec0e commit c5979a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SettingsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ class SettingsModal extends React.Component {
className="explorer-selector minimal"
value={this.state.discoveryGapLimit}
onChange={(event) => this.setDiscoveryConfigVar(event, 'discoveryGapLimit')}>
{[...Array(SETTINGS.DISCOVERY_GAP_LIMIT / 5).keys()].map((item, index) => (
{[...Array(SETTINGS.DISCOVERY_GAP_LIMIT / 5).keys()].splice(1, SETTINGS.DISCOVERY_GAP_LIMIT / 5).map((item, index) => (
<option
key={`discovery-account-index-${index}`}
value={(index + 1) * 5}>
{index === 3 ? (index + 1) * 5 + ' (default)' : (index + 1) * 5}
value={(index + 2) * 5}>
{index === 0 ? (index + 2) * 5 + ' (default)' : (index + 2) * 5}
</option>
))}
</select>
Expand Down

0 comments on commit c5979a3

Please sign in to comment.