mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(due date): update value correctly, fixes #10405
This commit is contained in:
@@ -622,7 +622,8 @@ export default {
|
|||||||
this.$t('today') :
|
this.$t('today') :
|
||||||
this.timeTillDue.humanize(true);
|
this.timeTillDue.humanize(true);
|
||||||
|
|
||||||
return this.$t('dueIn', { dueIn });
|
// this.task && is necessary to make sure the computed property updates correctly
|
||||||
|
return this.task && this.task.date && this.$t('dueIn', { dueIn });
|
||||||
},
|
},
|
||||||
hasTags () {
|
hasTags () {
|
||||||
return this.task.tags && this.task.tags.length > 0;
|
return this.task.tags && this.task.tags.length > 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user