Compare commits

..

2 commits

Author SHA1 Message Date
59d794a6d0
fix: use proper api route
Some checks failed
Build validation / build (20.x) (push) Has been cancelled
Build validation / build (22.x) (push) Has been cancelled
Build validation / lint (push) Has been cancelled
2025-04-05 00:02:40 +01:00
5bb5c8a907
feat: discord notifications & notify by default 2025-04-05 00:02:39 +01:00

View file

@ -85,10 +85,14 @@ const ChoreEdit = () => {
const [thingTrigger, setThingTrigger] = useState(null)
const [isThingValid, setIsThingValid] = useState(false)
const [notificationMetadata, setNotificationMetadata] = useState({})
const [notificationMetadata, setNotificationMetadata] = useState({
dueDate: true,
predue: true,
nagging: true
})
const [isRolling, setIsRolling] = useState(false)
const [isNotificable, setIsNotificable] = useState(false)
const [isNotificable, setIsNotificable] = useState(true)
const [isActive, setIsActive] = useState(true)
const [updatedBy, setUpdatedBy] = useState(0)
const [createdBy, setCreatedBy] = useState(0)
@ -710,7 +714,7 @@ const ChoreEdit = () => {
onChange={e => {
setIsNotificable(e.target.checked)
}}
defaultChecked={isNotificable}
defaultChecked={true}
checked={isNotificable}
value={isNotificable}
disabled={!isPlusAccount(userProfile)}