File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
apps/kyb-app/src/pages/CollectionFlow
services/workflows-service/src/workflow Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ export const CollectionFlow = withSessionProtected(() => {
126
126
if ( getCollectionFlowState ( initialContext ) ?. status === CollectionFlowStatusesEnum . rejected )
127
127
return < Rejected /> ;
128
128
129
+ if ( getCollectionFlowState ( initialContext ) ?. status === CollectionFlowStatusesEnum . completed )
130
+ return < CompletedScreen /> ;
131
+
132
+ if ( getCollectionFlowState ( initialContext ) ?. status === CollectionFlowStatusesEnum . failed )
133
+ return < FailedScreen /> ;
134
+
129
135
return definition && collectionFlowData ? (
130
136
< DynamicUI initialState = { initialUIState } >
131
137
< DynamicUI . StateManager
Original file line number Diff line number Diff line change @@ -121,11 +121,10 @@ type TEntityId = string;
121
121
122
122
export type TEntityType = 'endUser' | 'business' ;
123
123
124
- type CollectionFlowEvent = 'approved' | 'rejected' | 'failed' | ' revision';
124
+ type CollectionFlowEvent = 'approved' | 'rejected' | 'revision' ;
125
125
const COLLECTION_FLOW_EVENTS_WHITELIST : readonly CollectionFlowEvent [ ] = [
126
126
'approved' ,
127
127
'rejected' ,
128
- 'failed' ,
129
128
'revision' ,
130
129
] as const ;
131
130
You can’t perform that action at this time.
0 commit comments