Skip to content

Commit ce4c720

Browse files
authored
fix: fixed final page handling in kyb & removed failed from status from wf service (#2824)
1 parent e9db6f0 commit ce4c720

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/kyb-app/src/pages/CollectionFlow/CollectionFlow.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ export const CollectionFlow = withSessionProtected(() => {
126126
if (getCollectionFlowState(initialContext)?.status === CollectionFlowStatusesEnum.rejected)
127127
return <Rejected />;
128128

129+
if (getCollectionFlowState(initialContext)?.status === CollectionFlowStatusesEnum.completed)
130+
return <CompletedScreen />;
131+
132+
if (getCollectionFlowState(initialContext)?.status === CollectionFlowStatusesEnum.failed)
133+
return <FailedScreen />;
134+
129135
return definition && collectionFlowData ? (
130136
<DynamicUI initialState={initialUIState}>
131137
<DynamicUI.StateManager

services/workflows-service/src/workflow/workflow.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,10 @@ type TEntityId = string;
121121

122122
export type TEntityType = 'endUser' | 'business';
123123

124-
type CollectionFlowEvent = 'approved' | 'rejected' | 'failed' | 'revision';
124+
type CollectionFlowEvent = 'approved' | 'rejected' | 'revision';
125125
const COLLECTION_FLOW_EVENTS_WHITELIST: readonly CollectionFlowEvent[] = [
126126
'approved',
127127
'rejected',
128-
'failed',
129128
'revision',
130129
] as const;
131130

0 commit comments

Comments
 (0)