From 23102973c36975f54ef001ca580e51286f9a03c6 Mon Sep 17 00:00:00 2001 From: Jay Harris <7678024+fallaciousreasoning@users.noreply.github.com> Date: Mon, 29 Aug 2022 09:04:24 +1200 Subject: [PATCH] Fix NTP Stats Toggle (#14839) --- components/brave_new_tab_ui/hooks/PrefHookManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/brave_new_tab_ui/hooks/PrefHookManager.ts b/components/brave_new_tab_ui/hooks/PrefHookManager.ts index 1a92a32c3b5a..bbd73064400d 100644 --- a/components/brave_new_tab_ui/hooks/PrefHookManager.ts +++ b/components/brave_new_tab_ui/hooks/PrefHookManager.ts @@ -27,7 +27,7 @@ export class PrefHookManager { getInitialValue().then(this.notifyListeners) } - notifyListeners (prefs: T) { + notifyListeners = (prefs: T) => { const oldPrefs = this.#lastValue ?? {} as Partial this.#lastValue = prefs