Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Nov 5, 2024
1 parent e684834 commit 4222e7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,13 +870,13 @@ export class DictionaryController {
const modal = /** @type {import('./modal.js').Modal} */ (this._updateDictionaryModal);
modal.setVisible(false);

const title = modal.node.dataset.dictionaryTitle;
const dictionaryTitle = modal.node.dataset.dictionaryTitle;
const downloadUrl = modal.node.dataset.downloadUrl;
if (typeof title !== 'string') { return; }
if (typeof dictionaryTitle !== 'string') { return; }
delete modal.node.dataset.dictionaryTitle;

void this._enqueueTask({type: 'update', dictionaryTitle: title, downloadUrl});
this._hideUpdatesAvailableButton(title);
void this._enqueueTask({type: 'update', dictionaryTitle, downloadUrl});
this._hideUpdatesAvailableButton(dictionaryTitle);
}

/**
Expand Down

0 comments on commit 4222e7b

Please sign in to comment.