fix(react): Units icon uses default style if no settings (#356)
Fixes a side effect of the "there are no longer default settings" change. Fixes #344 Co-authored-by: Benjamin Fan <ben-git@swinglonga.com> Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/356 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org> Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
This commit is contained in:
parent
7c796a689e
commit
bdf8a40792
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ export const HeaderMenuDraftViewIcons = (props) => {
|
|||
tooltip="Switches Units between metric and imperial (see Core Settings)"
|
||||
>
|
||||
<UnitsIcon
|
||||
className={`${size} ${settings.units === accountUnits ? style.dflt : style.custom}`}
|
||||
className={`${size} ${settings.units === accountUnits || typeof settings.units === 'undefined' ? style.dflt : style.custom}`}
|
||||
/>
|
||||
</Button>
|
||||
) : null}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue