Skip to content

Commit

Permalink
fix(com-pwa): order status box date for new order
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed May 3, 2023
1 parent fdeb54b commit 8e5b698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uniquely/com-pwa/src/ui/stuff/order-status-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class AlwatrOrderStatusBox extends LocalizeMixin(SignalMixin(AlwatrBaseEl
this.content.status === 'draft'
? message('order_status_box_headline_new')
: message('order_status_box_headline')
.replace('${orderId}', replaceNumber(this.content.id.padStart(2, '0') ?? ''));
.replace('${orderId}', replaceNumber(this.content.id.padStart(2, '0')));

const iconBoxContent: IconBoxContent = {
headline,
Expand All @@ -88,7 +88,7 @@ export class AlwatrOrderStatusBox extends LocalizeMixin(SignalMixin(AlwatrBaseEl
return html`
<alwatr-icon-box .content=${iconBoxContent}>
${message('order_status_box_status') + ': ' + message('order_status_' + this.content.status)} <br />
${message('order_status_box_created') + ': ' + date(this.content.meta?.created ?? 0)}
${message('order_status_box_created') + ': ' + date(this.content.meta?.created ?? Date.now())}
</alwatr-icon-box>
`;
}
Expand Down

0 comments on commit 8e5b698

Please sign in to comment.