Compare commits

..

2 commits

Author SHA1 Message Date
4dfddbcfb0
fix: use proper api route
Some checks are pending
Build validation / build (20.x) (push) Waiting to run
Build validation / build (22.x) (push) Waiting to run
Build validation / lint (push) Waiting to run
2025-04-04 23:51:20 +01:00
6bba18e208
feat: discord notifications & notify by default
Some checks are pending
Build validation / build (20.x) (push) Waiting to run
Build validation / build (22.x) (push) Waiting to run
Build validation / lint (push) Waiting to run
2025-04-04 23:32:59 +01:00

View file

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