Update reminder interval and resolve server side.

This commit is contained in:
Patrick Fic
2024-04-19 10:53:25 -07:00
parent 2a8846297f
commit 13569a1785
3 changed files with 9 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ export function TaskUpsertModalComponent({
rules={[
{
validator: (_, value) => {
if (!value || existingTask?.remind_at === value || dayjs(value).isAfter(dayjs().add(30, "minute"))) {
if (!value || existingTask?.remind_at === value || dayjs(value).isAfter(dayjs().add(15, "minute"))) {
return Promise.resolve();
}
return Promise.reject(new Error(t("tasks.validation.remind_at_error_message")));