From 1a642ad7b4883136a8a59cefe4b97add0c600058 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 7 Jun 2022 07:20:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20the=20changed=20values=20?= =?UTF-8?q?optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Settings/AdvancedSettings.tsx | 2 +- src/tools/types.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Settings/AdvancedSettings.tsx b/src/components/Settings/AdvancedSettings.tsx index 5097c5823..680b55865 100644 --- a/src/components/Settings/AdvancedSettings.tsx +++ b/src/components/Settings/AdvancedSettings.tsx @@ -13,7 +13,7 @@ export default function TitleChanger() { }, }); - const saveChanges = (values: { title: string; logo: string; favicon: string }) => { + const saveChanges = (values: { title?: string; logo?: string; favicon?: string }) => { setConfig({ ...config, settings: { diff --git a/src/tools/types.ts b/src/tools/types.ts index 2d0a63d0a..e817fd459 100644 --- a/src/tools/types.ts +++ b/src/tools/types.ts @@ -2,9 +2,9 @@ import { OptionValues } from '../components/modules/modules'; export interface Settings { searchUrl: string; - title: string; - logo: string; - favicon: string; + title?: string; + logo?: string; + favicon?: string; } export interface Config {