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

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",
}}
>
{Object.entries(customTariffs).map(([serviceKey, privileges], index) => (
<Box key={index}>
{Object.entries(customTariffs).filter(([serviceKey]) => serviceKey === "squiz").map(([serviceKey, privileges], index) => {
console.log("serviceKey ",serviceKey)
return <Box key={index}>
<Box
sx={{
mb: "40px",
@ -68,7 +69,7 @@ function TariffConstructor() {
</Box>
<CustomTariffCard serviceKey={serviceKey} privileges={privileges} />
</Box>
))}
})}
</Box>
<Link
to="/tariffconstructor/savedtariffs"