Skip to content

Commit 24b674d

Browse files
fix(CaseOverview): UBO risk indicator title (#3042)
* refactor(CaseOverview): improve tab generation logic - Replace inline tab logic with a dedicated function - Ensure 'ubos' case returns the correct tab name - Maintain existing functionality for other domain tab names * refactor(CaseOverview): simplify tab generation logic - Remove unnecessary getTab function - Use camelCase on the domain string directly --------- Co-authored-by: Alon Peretz <8467965+alonp99@users.noreply.github.com>
1 parent 757add5 commit 24b674d

File tree

5 files changed

+39958
-6
lines changed

5 files changed

+39958
-6
lines changed

apps/backoffice-v2/src/pages/Entity/components/Case/components/CaseOverview/CaseOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const CaseOverview = ({ processes }: { processes: string[] }) => {
3030
workflow?.context?.pluginsOutput?.risk_evaluation?.riskIndicatorsByDomain ??
3131
{},
3232
)?.map(([domain, riskIndicators]) => {
33-
const tab = camelCase(domain);
33+
const tab = camelCase(domain.toLowerCase());
3434
const isValidCaseTab = CaseTabs.includes(tab);
3535

3636
return {

apps/backoffice-v2/src/pages/MerchantMonitoring/hooks/useMerchantMonitoringLogic/useMerchantMonitoringLogic.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ export const useMerchantMonitoringLogic = () => {
7878
statuses: statuses
7979
?.map(status => REPORT_STATUS_LABEL_TO_VALUE_MAP[status])
8080
.flatMap(status =>
81-
status === 'in-progress'
82-
? ['in-progress', 'quality-control', 'failed']
83-
: [status],
81+
status === 'in-progress' ? ['in-progress', 'quality-control', 'failed'] : [status],
8482
),
8583
from,
8684
to: to ? dayjs(to).add(1, 'day').format('YYYY-MM-DD') : undefined,

0 commit comments

Comments
 (0)