diff --git a/uniquely/com-pwa/src/ui/stuff/user-inc-order-box.ts b/uniquely/com-pwa/src/ui/stuff/user-inc-order-box.ts
index d07b8c748..f3802b825 100644
--- a/uniquely/com-pwa/src/ui/stuff/user-inc-order-box.ts
+++ b/uniquely/com-pwa/src/ui/stuff/user-inc-order-box.ts
@@ -104,13 +104,15 @@ export class alwatrUserIncOrderBox extends LocalizeMixin(SignalMixin(AlwatrBaseE
protected _renderOrderBox(): unknown {
let orderListTemplate;
- if (Object.keys(this.userIncOrder!.orderList).length === 0) {
- orderListTemplate = html`${message('page_admin_order_list_empty_order_list')}`;
+ const orderListValues = Object.values(this.userIncOrder?.orderList ?? {});
+ if (orderListValues.length === 0) {
+ orderListTemplate = html`
+
+ ${message('page_admin_order_list_empty_order_list')}
+ `;
}
else {
- const orderList = Object.values(this.userIncOrder!.orderList).sort((o1, o2) => {
+ const orderList = orderListValues.sort((o1, o2) => {
return (o2.meta?.updated || 0) - (o1.meta?.updated || 0);
});