diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 90a5bd6..86fbb35 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -573,24 +573,22 @@ function GeneralSection() { > Show Move option - {showServe && ( - { - if (value) { - setDisabledActions( - disabledActions?.filter( - (action) => action !== 'tray-serve' - ) || [] - ) - } else { - setDisabledActions([...(disabledActions || []), 'tray-serve']) - } - }} - > - Show Serve option - - )} + { + if (value) { + setDisabledActions( + disabledActions?.filter((action) => action !== 'tray-serve') || + [] + ) + } else { + setDisabledActions([...(disabledActions || []), 'tray-serve']) + } + }} + isDisabled={!showServe} + > + Show Serve option + {