diff --git a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/SummarySection.tsx b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/SummarySection.tsx index 321652e..0e4db88 100644 --- a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/SummarySection.tsx +++ b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/SummarySection.tsx @@ -87,11 +87,19 @@ export const SummarySection = ({ cartModal, onToggleCartModal }: SummarySectionP {t("SectionSummary.SumOfItemsLabel")} {formatPrice(subTotal)} T {t("SectionSummary.DeliveryLabel")} - {formatPrice(deliveryFee)} T - {t("SectionSummary.DiscountLabel")} - {formatPrice(totalDiscount)} T - {t("SectionSummary.TaxLabel")} - {formatPrice(tax)} T + {deliveryFee === 0 ? 'رایگان' : formatPrice(deliveryFee) + ' T'} + {totalDiscount > 0 && ( + <> + {t("SectionSummary.DiscountLabel")} + {formatPrice(totalDiscount)} T + + )} + {tax > 0 && ( + <> + {t("SectionSummary.TaxLabel")} + {formatPrice(tax)} T + + )} {t("SectionSummary.TotalLabel")} {formatPrice(total)} T