Skip to content

Commit

Permalink
fixed application create function
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot committed Feb 27, 2024
1 parent 37b087f commit c2ba0cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions forms-flow-web/src/components/Form/Item/apiSelectHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const selectApplicationCreateAPI = (
!isAuthenticated && !isDraftEnabled && !isDraftCreated;
let usePublicDraftSubmit =
!isAuthenticated && isDraftEnabled && isDraftCreated;
let selection = null;

let selection = isAuthenticated ? applicationCreate : publicApplicationCreate;
if (useDraftSubmission) selection = draftSubmit;
if (useApplicationCreate) selection = applicationCreate;
if (usePublicApplicationCreate) selection = publicApplicationCreate;
Expand Down

0 comments on commit c2ba0cc

Please sign in to comment.