Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m7s

# Conflicts:
#	src/stores/mixin.ts
This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-22 16:51:22 +07:00
commit 5a86f78061

View file

@ -946,7 +946,7 @@ export const useCounterMixin = defineStore("mixin", () => {
if (!startDate || !endDate) return "";
let start = moment(startDate).startOf("day");
let end = moment(endDate).startOf("day").add(1, "days");
let end = moment(endDate).startOf("day").add(1, "day");
// สลับค่าเพื่อให้ end มากกว่า start เสมอ
if (start > end) [start, end] = [end, start];