Skip to content

Commit 00902f9

Browse files
committed
chore: fix breadcrumb navigation in statement state
1 parent cef9f70 commit 00902f9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const paymentFlowBreadcrumbsNodes: BreadcrumbNodes = {
8383
history: {
8484
parent: 'landing',
8585
item: {
86-
id: 'receipts',
86+
id: 'history',
8787
label: 'breadcrumbLabel',
8888
namespace: 'Contractor.Payments.PaymentHistory',
8989
onNavigate: ((ctx: PaymentFlowContextInterface) => ({
@@ -205,5 +205,8 @@ export const paymentMachine = {
205205
),
206206
breadcrumbNavigateTransition('landing'),
207207
),
208-
statement: state<MachineTransition>(breadcrumbNavigateTransition('landing')),
208+
statement: state<MachineTransition>(
209+
breadcrumbNavigateTransition('landing'),
210+
breadcrumbNavigateTransition('history'),
211+
),
209212
}

src/i18n/en/Contractor.Payments.PaymentStatement.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
"contractorNotFound": "Contractor not found"
1515
}
1616
}
17-

0 commit comments

Comments
 (0)