From c9579c1b8d391f64edc9098eee7efea13f3d67a4 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Mon, 23 Feb 2026 10:09:04 +0800 Subject: [PATCH] fix(dashboard): match new order ID format in income page --- app/(dashboard)/dashboard/shop/income/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(dashboard)/dashboard/shop/income/page.tsx b/app/(dashboard)/dashboard/shop/income/page.tsx index 6712a60..2493c91 100644 --- a/app/(dashboard)/dashboard/shop/income/page.tsx +++ b/app/(dashboard)/dashboard/shop/income/page.tsx @@ -48,7 +48,7 @@ export default function ShopIncomePage() { const relatedTransactions = listTransactions().filter((transaction) => { if (transaction.type === "withdrawal") return true if (transaction.type !== "income") return false - const match = transaction.description.match(/ord\d+/) + const match = transaction.description.match(/ord[-\d]+/) if (!match) return false return shopOrderIds.has(match[0]) })