выводится только опросник в кастомном тарифе

This commit is contained in:
Nastya 2024-01-15 03:52:19 +03:00
parent dccf707f96
commit 13820d6652

@ -42,8 +42,9 @@ function TariffConstructor() {
gap: "80px", gap: "80px",
}} }}
> >
{Object.entries(customTariffs).map(([serviceKey, privileges], index) => ( {Object.entries(customTariffs).filter(([serviceKey]) => serviceKey === "squiz").map(([serviceKey, privileges], index) => {
<Box key={index}> console.log("serviceKey ",serviceKey)
return <Box key={index}>
<Box <Box
sx={{ sx={{
mb: "40px", mb: "40px",
@ -68,7 +69,7 @@ function TariffConstructor() {
</Box> </Box>
<CustomTariffCard serviceKey={serviceKey} privileges={privileges} /> <CustomTariffCard serviceKey={serviceKey} privileges={privileges} />
</Box> </Box>
))} })}
</Box> </Box>
<Link <Link
to="/tariffconstructor/savedtariffs" to="/tariffconstructor/savedtariffs"
@ -80,7 +81,7 @@ function TariffConstructor() {
textDecorationColor: theme.palette.purple.main, textDecorationColor: theme.palette.purple.main,
}} }}
> >
Ваши сохраненные тарифы Ваши сохраненные тарифы
</Link> </Link>
<TotalPrice priceBeforeDiscounts={basePrice} priceAfterDiscounts={discountedPrice} isConstructor={true} /> <TotalPrice priceBeforeDiscounts={basePrice} priceAfterDiscounts={discountedPrice} isConstructor={true} />
</SectionWrapper> </SectionWrapper>