diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-01 22:12:19 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-01 22:12:19 -0400 |
commit | 5e54da8271c7fac5062f0aca9b10e7370fd4bae2 (patch) | |
tree | 376e53b60c9639d9db80cbcd809212253f29f0d0 /src/views/ChoreEdit | |
parent | 6bc28be9e351662025a3eb0662f32902e64eb143 (diff) | |
download | donetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.tar.gz donetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.tar.bz2 donetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.zip |
Update button re-enable timeout to 3 seconds, update thing history
Diffstat (limited to '')
-rw-r--r-- | src/views/ChoreEdit/ChoreEdit.jsx | 2 | ||||
-rw-r--r-- | src/views/ChoreEdit/ThingTriggerSection.jsx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/views/ChoreEdit/ChoreEdit.jsx b/src/views/ChoreEdit/ChoreEdit.jsx index e8eb17d..568b20a 100644 --- a/src/views/ChoreEdit/ChoreEdit.jsx +++ b/src/views/ChoreEdit/ChoreEdit.jsx @@ -506,7 +506,7 @@ const ChoreEdit = () => { </FormControl> )} </Box> - {!['once', 'no_repeat'].includes(frequencyType) && ( + {!['once', 'no_repeat', 'trigger'].includes(frequencyType) && ( <Box mt={2}> <Typography level='h4'>Scheduling Preferences: </Typography> <Typography level='h5'> diff --git a/src/views/ChoreEdit/ThingTriggerSection.jsx b/src/views/ChoreEdit/ThingTriggerSection.jsx index 7a040ad..981f84b 100644 --- a/src/views/ChoreEdit/ThingTriggerSection.jsx +++ b/src/views/ChoreEdit/ThingTriggerSection.jsx @@ -6,7 +6,6 @@ import { Card, Chip, FormControl, - FormLabel, Input, ListItem, ListItemContent, @@ -91,7 +90,7 @@ const ThingTriggerSection = ({ <Typography level='h5'> Trigger a task when a thing state changes to a desired state </Typography> - {things.length !== 0 && ( + {things?.length === 0 && ( <Typography level='body-sm'> it's look like you don't have any things yet, create a thing to trigger a task when the state changes. |