mobile: return if some days are already selected

This commit is contained in:
ammarahm-ed
2023-04-16 01:03:15 +05:00
committed by Ammar Ahmed
parent 87804de452
commit 4977390394

View File

@@ -312,6 +312,7 @@ export default function ReminderSheet({
);
if (mode === "Repeat") {
setSelectedDays((days) => {
if (days.length > 0) return days;
if (days.indexOf(date.getDay()) > -1) {
return days;
}