diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index ccba40ca0..fd4adacb9 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -1155,9 +1155,9 @@ export const useCounterMixin = defineStore("mixin", () => { const d = parseInt(day); const parts = []; - if (y > 0) parts.push(`${y}ปี`); - if (m > 0) parts.push(`${m}เดือน`); - if (d > 0) parts.push(`${d}วัน`); + if (y > 0) parts.push(`${y} ปี`); + if (m > 0) parts.push(`${m} เดือน`); + if (d > 0) parts.push(`${d} วัน`); return parts.length > 0 ? parts.join(" ") : ""; // กรณีที่ทั้งหมดเป็น 0 }