fix: Always convert duration to a number

This commit is contained in:
buzzcode2007 2025-04-11 01:14:58 +00:00
parent 8152c172a9
commit e526a60bfd

View file

@ -15,6 +15,9 @@ class Activity extends Entry {
// Set a default date value.
this.date = this.date ? this.date : new Date(Date.now());
this.set_date(this.date);
// Convert the duration to a number if it isn't.
(this.duration) ? this.duration = parseInt(this.duration) : null;
};
/*