MOBILE-3936 reminders: Fix multiple reminders set
parent
d40a488758
commit
746253ce40
|
@ -97,15 +97,15 @@ export class CoreRemindersSetButtonComponent implements OnInit {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timebefore === undefined || timebefore === CoreRemindersService.DISABLED) {
|
// Remove previous the reminders.
|
||||||
// Remove the reminder.
|
await CoreReminders.removeReminders({
|
||||||
await CoreReminders.removeReminders({
|
instanceId: this.instanceId,
|
||||||
instanceId: this.instanceId,
|
component: this.component,
|
||||||
component: this.component,
|
type: this.type,
|
||||||
type: this.type,
|
});
|
||||||
});
|
|
||||||
this.timebefore = undefined;
|
|
||||||
|
|
||||||
|
if (timebefore === undefined || timebefore === CoreRemindersService.DISABLED) {
|
||||||
|
this.timebefore = undefined;
|
||||||
CoreDomUtils.showToast('core.reminders.reminderunset', true);
|
CoreDomUtils.showToast('core.reminders.reminderunset', true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue