Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hub committed Aug 29, 2023
1 parent 91e1a27 commit 916bd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/BibleReferenceSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ export class BibleReferenceSettingTab extends PluginSettingTab {
return BibleVersionCollection
}

setUpVersionSettingsAndVersionOptions = (containerEl: HTMLElement, disableBibleAPI?: boolean = false): void => {
setUpVersionSettingsAndVersionOptions = (containerEl: HTMLElement, disableBibleAPI?: boolean): void => {
let allAvailableVersionOptions = this.getAllBibleVersionsWithLanguageNameAlphabetically()
if (disableBibleAPI ) {
allAvailableVersionOptions = allAvailableVersionOptions.filter(
v => {
return v.apiSource.name !== BibleAPISourceCollection.bibleApi.name
})
}
if (disableBibleAPI && ~allAvailableVersionOptions.find(v => v.key === this.plugin.settings.bibleVersion) ) {
if (disableBibleAPI && !allAvailableVersionOptions.find(v => v.key === this.plugin.settings.bibleVersion) ) {
this.plugin.settings.bibleVersion = DEFAULT_BIBLE_VERSION.key
}

Expand Down

0 comments on commit 916bd52

Please sign in to comment.