Skip to content

Commit

Permalink
fix(com-pwa): add / after config.cdn when use
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
  • Loading branch information
2 people authored and AliMD committed Apr 24, 2023
1 parent 407e9c6 commit 407739e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uniquely/com-pwa/src/ui/page/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export class AlwatrPageNewOrder extends UnresolvedMixin(LocalizeMixin(SignalMixi
item.qty ||= 100;

return html`<alwatr-surface tinted class="product-item">
<img src="${config.cdn + 'medium/' + product.image.id}" />
<img src="${config.cdn + '/medium/' + product.image.id}" />
<div class="detail-container">
<div>${product.title.fa}</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion uniquely/com-pwa/src/ui/stuff/select-product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class AlwatrSelectProduct extends LocalizeMixin(SignalMixin(UnresolvedMix
const content: ProductCartContent = {
id: product.id,
title: product.title.fa,
imagePath: config.cdn + 'medium/' + product.image.id,
imagePath: config.cdn + '/medium/' + product.image.id,
price: this.priceStorage?.data[product.id]?.price ?? 0,
finalPrice: this.finalPriceStorage?.data[product.id]?.price ?? 0,
};
Expand Down

0 comments on commit 407739e

Please sign in to comment.