Skip to content

Commit

Permalink
updates singular
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jul 19, 2024
1 parent ab92ab1 commit c35556b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export class DictionaryController {
const updateChecks = this._dictionaryEntries.map((entry) => entry.checkForUpdate());
const updateCount = (await Promise.all(updateChecks)).reduce((sum, value) => (sum + (value ? 1 : 0)), 0);
if (this._checkUpdatesButton !== null) {
this._checkUpdatesButton.textContent = updateCount ? `${updateCount} updates` : 'No updates';
this._checkUpdatesButton.textContent = updateCount ? `${updateCount} update${updateCount > 1 ? 's' : ''}` : 'No updates';
}
} finally {
this._setButtonsEnabled(true);
Expand Down

0 comments on commit c35556b

Please sign in to comment.