1
0
Fork 0

fix: Only value

This commit is contained in:
joostdecock 2025-01-26 16:27:30 +01:00
parent 6a0a7bc99f
commit 899b323563

View file

@ -166,9 +166,7 @@ export const MenuScaleSettingValue = ({ current, config, changed }) => (
* @param {bool} changed - Whether or not the value is non-default
*/
export const MenuOnlySettingValue = ({ current, config }) => (
<MenuHighlightValue
current={current?.length}
dflt={config.parts.length}
changed={current !== undefined}
/>
<MenuHighlightValue changed={current !== undefined}>
{current === undefined ? '-' : current.length}
</MenuHighlightValue>
)