Skip to content

Commit

Permalink
use placeholder instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Nov 1, 2023
1 parent 105a746 commit 9c92d79
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -239,7 +239,7 @@ export const ApplicationSettings = () => {
control: (
<FileInput
accept=".ttc,.ttf,.otf,.woff,.woff2"
defaultValue={fontList}
placeholder={fontList}
w={300}
onChange={(e) =>
setSettings({
Expand Down

0 comments on commit 9c92d79

Please sign in to comment.