Skip to content

Commit 8e87273

Browse files
author
Clément VALENTIN
committed
feat(simulator): étendre la logique de prix pour inclure les offres HC_NUIT_WEEKEND et WEEKEND
1 parent 049472c commit 8e87273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/pages/Simulator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ export default function Simulator() {
21982198
<span className="font-medium text-emerald-700 dark:text-emerald-300">{formatPrice(result.offer.base_price, 5)} €/kWh</span>
21992199
</div>
22002200
)}
2201-
{result.offer.hc_price && result.offer.hp_price && result.offerType === 'HC_HP' && (
2201+
{result.offer.hc_price && result.offer.hp_price && (result.offerType === 'HC_HP' || result.offerType === 'HC_NUIT_WEEKEND' || result.offerType === 'WEEKEND' || result.offerType === 'HC_WEEKEND') && (
22022202
<>
22032203
<div className="flex justify-between">
22042204
<span className="text-sky-600 dark:text-sky-400 font-medium">Prix HC :</span>

0 commit comments

Comments
 (0)