From 9c92d79a38ebcd5374f0c64dc516147f28399a2b Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Tue, 31 Oct 2023 21:00:53 -0700 Subject: [PATCH] use placeholder instead --- .../settings/components/general/application-settings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/features/settings/components/general/application-settings.tsx b/src/renderer/features/settings/components/general/application-settings.tsx index e434fb29e..1300c49f4 100644 --- a/src/renderer/features/settings/components/general/application-settings.tsx +++ b/src/renderer/features/settings/components/general/application-settings.tsx @@ -68,9 +68,9 @@ export const ApplicationSettings = () => { const fontList = useMemo(() => { if (fontSettings.custom) { - return new File([], fontSettings.custom.split(/(\\|\/)/g).pop()!); + return fontSettings.custom.split(/(\\|\/)/g).pop()!; } - return null; + return ''; }, [fontSettings.custom]); const onFontError = useCallback( @@ -239,7 +239,7 @@ export const ApplicationSettings = () => { control: ( setSettings({