File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
apps/web/lib/actions/partners Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ export const createProgramApplicationAction = actionClient
166166 include : {
167167 programs : true ,
168168 platforms : true ,
169+ preferredEarningStructures : true ,
170+ salesChannels : true ,
169171 } ,
170172 } )
171173 : null ;
@@ -180,7 +182,16 @@ export const createProgramApplicationAction = actionClient
180182 // if the partner has an incomplete profile, if so we prompt them to complete it
181183 if ( inAppApplication && existingPartner ) {
182184 const { isComplete } = getPartnerProfileChecklistProgress ( {
183- partner : existingPartner ,
185+ partner : {
186+ ...existingPartner ,
187+ preferredEarningStructures :
188+ existingPartner . preferredEarningStructures . map (
189+ ( { preferredEarningStructure } ) => preferredEarningStructure ,
190+ ) ,
191+ salesChannels : existingPartner . salesChannels . map (
192+ ( { salesChannel } ) => salesChannel ,
193+ ) ,
194+ } ,
184195 programEnrollments : existingPartner . programs ,
185196 } ) ;
186197
You can’t perform that action at this time.
0 commit comments