mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
Update Subscription.tsx
This commit is contained in:
@@ -1960,7 +1960,7 @@ export default function Subscription() {
|
|||||||
) : selectedTariffPeriod && (
|
) : selectedTariffPeriod && (
|
||||||
<>
|
<>
|
||||||
{/* Если есть доп. устройства - показываем разбивку */}
|
{/* Если есть доп. устройства - показываем разбивку */}
|
||||||
{selectedTariffPeriod.extra_devices_count > 0 && selectedTariffPeriod.base_tariff_price_kopeks ? (
|
{(selectedTariffPeriod.extra_devices_count ?? 0) > 0 && selectedTariffPeriod.base_tariff_price_kopeks ? (
|
||||||
<>
|
<>
|
||||||
<div className="flex justify-between text-sm text-dark-300">
|
<div className="flex justify-between text-sm text-dark-300">
|
||||||
<span>{t('subscription.baseTariff')}: {selectedTariffPeriod.label}</span>
|
<span>{t('subscription.baseTariff')}: {selectedTariffPeriod.label}</span>
|
||||||
@@ -1968,7 +1968,7 @@ export default function Subscription() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between text-sm text-dark-300">
|
<div className="flex justify-between text-sm text-dark-300">
|
||||||
<span>{t('subscription.extraDevices')} ({selectedTariffPeriod.extra_devices_count})</span>
|
<span>{t('subscription.extraDevices')} ({selectedTariffPeriod.extra_devices_count})</span>
|
||||||
<span>+{formatPrice(selectedTariffPeriod.extra_devices_cost_kopeks)}</span>
|
<span>+{formatPrice(selectedTariffPeriod.extra_devices_cost_kopeks ?? 0)}</span>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user