Fix: Changing font reset overrides.

Fix: Left test string in friends.
This commit is contained in:
Paul 2021-07-05 21:03:34 +01:00
parent e5b233e14e
commit c246c2b77a
2 changed files with 3 additions and 7 deletions

View file

@ -210,8 +210,6 @@ export default function Friends() {
</CollapsibleSection> </CollapsibleSection>
); );
})} })}
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><h1>test</h1>
</div> </div>
</> </>
); );

View file

@ -152,7 +152,7 @@ export function Component(props: Props) {
<ComboBox <ComboBox
value={theme.font ?? DEFAULT_FONT} value={theme.font ?? DEFAULT_FONT}
onChange={(e) => onChange={(e) =>
setTheme({ custom: { font: e.currentTarget.value as any } }) pushOverride({ font: e.currentTarget.value as any })
}> }>
{FONT_KEYS.map((key) => ( {FONT_KEYS.map((key) => (
<option value={key}> <option value={key}>
@ -335,10 +335,8 @@ export function Component(props: Props) {
<ComboBox <ComboBox
value={theme.monoscapeFont ?? DEFAULT_MONO_FONT} value={theme.monoscapeFont ?? DEFAULT_MONO_FONT}
onChange={(e) => onChange={(e) =>
setTheme({ pushOverride({
custom: { monoscapeFont: e.currentTarget.value as any,
monoscapeFont: e.currentTarget.value as any,
},
}) })
}> }>
{MONOSCAPE_FONT_KEYS.map((key) => ( {MONOSCAPE_FONT_KEYS.map((key) => (