Skip to content

Commit d865d61

Browse files
Fix TS Build Mistakes
1 parent ec21413 commit d865d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/settings/SettingsTab.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default class BetterWordCountSettingsTab extends PluginSettingTab {
4444
text.inputEl.type = "number";
4545
text.setPlaceholder("300");
4646
text.setValue(this.plugin.settings.pageWords);
47-
text.onChange(async (value: number) => {
48-
this.plugin.settings.pageWords = value;
47+
text.onChange(async (value: string) => {
48+
this.plugin.settings.pageWords = parseInt(value);
4949
await this.plugin.saveSettings();
5050
});
5151
});

0 commit comments

Comments
 (0)