fix(dashboard): match new order ID format in income page
This commit is contained in:
@@ -48,7 +48,7 @@ export default function ShopIncomePage() {
|
|||||||
const relatedTransactions = listTransactions().filter((transaction) => {
|
const relatedTransactions = listTransactions().filter((transaction) => {
|
||||||
if (transaction.type === "withdrawal") return true
|
if (transaction.type === "withdrawal") return true
|
||||||
if (transaction.type !== "income") return false
|
if (transaction.type !== "income") return false
|
||||||
const match = transaction.description.match(/ord\d+/)
|
const match = transaction.description.match(/ord[-\d]+/)
|
||||||
if (!match) return false
|
if (!match) return false
|
||||||
return shopOrderIds.has(match[0])
|
return shopOrderIds.has(match[0])
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user