diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-02 00:40:14 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-02 00:40:14 +0200 |
commit | 45d7df9cd9caae93b745265a6b50caabfceb6cab (patch) | |
tree | 3ed070026a994d8fd10d84818d47ade6c5c9e088 /components | |
parent | 870fef3389a896c6d5c7ba22cef381be9d1ea95a (diff) |
fix: selecting never will not throw error anymore
Diffstat (limited to 'components')
-rw-r--r-- | components/tweaks.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx index b4733b8..0568c7d 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -1242,7 +1242,11 @@ export const Tweaks = (props: TweakProps) => { colorScheme="" color="black" > - <Text>{mouse.local[0]!.toUpperCase() + mouse.local!.slice(1)}</Text> + <Text> + {mouse.local + ? mouse.local[0]!.toUpperCase() + mouse.local!.slice(1) + : 'Never'} + </Text> </MenuButton> <Portal> {' '} @@ -1272,7 +1276,11 @@ export const Tweaks = (props: TweakProps) => { colorScheme="" color="black" > - <Text>{mouse.follow[0]!.toUpperCase() + mouse.follow!.slice(1)}</Text> + <Text> + {mouse.follow + ? mouse.follow[0]!.toUpperCase() + mouse.follow!.slice(1) + : 'Never'} + </Text> </MenuButton> <Portal> {' '} |