Skip to content

Commit

Permalink
Merge pull request #15264 from brave/stats-toggle-uplift
Browse files Browse the repository at this point in the history
Fix NTP Stats Toggle (#14839)
  • Loading branch information
kjozwiak authored Oct 5, 2022
2 parents bfc9f16 + 2310297 commit 98f8701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/brave_new_tab_ui/hooks/PrefHookManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class PrefHookManager<T> {
getInitialValue().then(this.notifyListeners)
}

notifyListeners (prefs: T) {
notifyListeners = (prefs: T) => {
const oldPrefs = this.#lastValue ?? {} as Partial<T>
this.#lastValue = prefs

Expand Down

0 comments on commit 98f8701

Please sign in to comment.