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(() => {
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
Original file line number Diff line number Diff line change @@ -121,11 +121,10 @@ type TEntityId = string;
121121
122122export type TEntityType = 'endUser' | 'business' ;
123123
124- type CollectionFlowEvent = 'approved' | 'rejected' | 'failed' | ' revision';
124+ type CollectionFlowEvent = 'approved' | 'rejected' | 'revision' ;
125125const COLLECTION_FLOW_EVENTS_WHITELIST : readonly CollectionFlowEvent [ ] = [
126126 'approved' ,
127127 'rejected' ,
128- 'failed' ,
129128 'revision' ,
130129] as const ;
131130
You can’t perform that action at this time.
0 commit comments