Web: Client: Groups. fixed when filtering by paid badge, the selected element is not displayed

This commit is contained in:
Elyor Djalilov 2024-05-14 18:20:11 +05:00
parent 4b9cd4b480
commit 329a44c487

View File

@ -852,15 +852,26 @@ const SectionFilterContent = ({
if (accountsFilter?.payments?.toString()) { if (accountsFilter?.payments?.toString()) {
filterValues.push({ filterValues.push({
key: filter.payments.toString(), key: filter.payments?.toString(),
label: label:
PaymentsType.Paid === filter.payments.toString() PaymentsType.Paid === filter.payments?.toString()
? t("Common:Paid") ? t("Common:Paid")
: t("Common:Free"), : t("Common:Free"),
group: "filter-account", group: "filter-account",
}); });
} }
if (insideGroupFilter?.payments?.toString()) {
filterValues.push({
key: filter.payments?.toString(),
label:
PaymentsType.Paid === filter.payments?.toString()
? t("Common:Paid")
: t("Common:Free"),
group: "filter-group",
});
}
if (filter?.accountLoginType?.toString()) { if (filter?.accountLoginType?.toString()) {
const label = const label =
AccountLoginType.SSO === filter.accountLoginType.toString() AccountLoginType.SSO === filter.accountLoginType.toString()