From f3478587b164a84c674bdf0d5dd018b409b8db13 Mon Sep 17 00:00:00 2001 From: Aj - Thomas Date: Tue, 10 May 2022 20:36:38 +0200 Subject: [PATCH] Improve default arguments and type checking --- tools/state.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/state.tsx b/tools/state.tsx index 285f01641..d803402f1 100644 --- a/tools/state.tsx +++ b/tools/state.tsx @@ -16,6 +16,7 @@ const configContext = createContext({ settings: { searchBar: true, searchUrl: 'https://www.google.com/search?q=', + enabledModules: [], }, }, setConfig: () => {}, @@ -49,6 +50,7 @@ export function ConfigProvider({ children }: Props) { settings: { searchBar: true, searchUrl: 'https://www.google.com/search?q=', + enabledModules: [], }, });