« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateRelativeDatetimestamp.js2
-rw-r--r--src/data/things/language.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/generateRelativeDatetimestamp.js b/src/content/dependencies/generateRelativeDatetimestamp.js
index bbe33188..7b7a28de 100644
--- a/src/content/dependencies/generateRelativeDatetimestamp.js
+++ b/src/content/dependencies/generateRelativeDatetimestamp.js
@@ -28,7 +28,7 @@ export default {
   },
 
   generate(data, relations, slots, {language}) {
-    if (data.comparison === 'equal') {
+    if (data.equal) {
       return relations.fallback.slots({
         style: slots.style,
         tooltip: slots.tooltip,
diff --git a/src/data/things/language.js b/src/data/things/language.js
index c1916313..d7e8a1a6 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -309,7 +309,7 @@ export class Language extends Thing {
     else if (numMonths && numDays)
       basis = this.formatString('count.dateDuration.monthsDays', {months, days});
     else if (numMonths)
-      basis = this.formatzString('count.dateDuration.months', {months});
+      basis = this.formatString('count.dateDuration.months', {months});
     else if (numDays)
       basis = this.formatString('count.dateDuration.days', {days});
     else