fix(dashboard): match new order ID format in income page

This commit is contained in:
zetaloop
2026-02-23 10:09:04 +08:00
parent b99242feb2
commit c9579c1b8d
@@ -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])
})