Skip to content
Snippets Groups Projects
Unverified Commit f7701292 authored by meskio's avatar meskio :tent:
Browse files

Accept null product orders

parent 4f127af7
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,9 @@ function ShowOrderResults(props) {
return p;
});
const transactions = props.order.transactions.map((t) => {
if (t.order_purchase === null) {
return null;
}
const list = t.order_purchase.map((purchase) => {
const i = products.findIndex((p) => p.ID === purchase.order_product_id);
if (i === -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment