@@ -141,7 +141,7 @@ function PartnerProfileForm({
141141 < Input />
142142 </ Form . Item >
143143 ) }
144- { ( ! hub_user || ! hub_user . url . includes ( "AUAF" ) ) && (
144+ { ( ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ) && (
145145 < Form . Item
146146 label = { t ( "partnerProfile.organizationName" ) }
147147 name = "organization"
@@ -195,7 +195,7 @@ function PartnerProfileForm({
195195 </ Form . Item >
196196 </ div >
197197 ) : null }
198- { hub_user && hub_user . url . includes ( "AUAF" ) && (
198+ { hub_user && hub_user . url ? .includes ( "AUAF" ) && (
199199 < Form . Item
200200 label = { t ( "partnerProfile.title" ) }
201201 name = "title"
@@ -210,7 +210,7 @@ function PartnerProfileForm({
210210 < Input />
211211 </ Form . Item >
212212 ) }
213- { ( ! hub_user || ! hub_user . url . includes ( "AUAF" ) ) && (
213+ { ( ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ) && (
214214 < Form . Item
215215 label = { t ( "partnerProfile.location" ) }
216216 name = "location"
@@ -227,7 +227,7 @@ function PartnerProfileForm({
227227 ) }
228228 < Form . Item
229229 label = {
230- hub_user && hub_user . url . includes ( "AUAF" )
230+ hub_user && hub_user . url ? .includes ( "AUAF" )
231231 ? t ( "partnerProfile.AUAFcontactFullName" )
232232 : t ( "partnerProfile.contactFullName" )
233233 }
@@ -241,7 +241,7 @@ function PartnerProfileForm({
241241 >
242242 < Input />
243243 </ Form . Item >
244- { ( ! hub_user || ! hub_user . url . includes ( "AUAF" ) ) && (
244+ { ( ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ) && (
245245 < Form . Item
246246 label = { t ( "partnerProfile.regionsWork" ) }
247247 name = "regions"
@@ -257,7 +257,7 @@ function PartnerProfileForm({
257257 ) }
258258 < Form . Item
259259 label = {
260- hub_user && hub_user . url . includes ( "AUAF" )
260+ hub_user && hub_user . url ? .includes ( "AUAF" )
261261 ? t ( "partnerProfile.AUAFbriefIntro" )
262262 : t ( "partnerProfile.briefIntro" )
263263 }
@@ -271,7 +271,7 @@ function PartnerProfileForm({
271271 >
272272 < Input . TextArea rows = { 3 } />
273273 </ Form . Item >
274- { ! hub_user || ! hub_user . url . includes ( "AUAF" ) ? (
274+ { ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ? (
275275 < div className = { styles . formGroup } >
276276 < Form . Item
277277 className = { styles . formGroupItem }
@@ -340,10 +340,10 @@ function PartnerProfileForm({
340340 >
341341 < Select mode = "multiple" options = { getSDGs ( t ) } />
342342 </ Form . Item >
343- { ( ! hub_user || ! hub_user . url . includes ( "AUAF" ) ) && (
343+ { ( ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ) && (
344344 < Form . Item
345345 label = {
346- hub_user && hub_user . url === "GSRFoundation"
346+ hub_user && hub_user . url ?. includes ( "GSRFoundation" )
347347 ? t ( "partnerProfile.projectNames_GSR" )
348348 : t ( "partnerProfile.projectNames" )
349349 }
@@ -353,12 +353,12 @@ function PartnerProfileForm({
353353 </ Form . Item >
354354 ) }
355355
356- { hub_user && hub_user . url === "GSRFoundation" && (
356+ { hub_user && hub_user . url ?. includes ( "GSRFoundation" ) && (
357357 < Form . Item label = { t ( "partnerProfile.success_GSR" ) } name = "success" >
358358 < Input . TextArea rows = { 3 } />
359359 </ Form . Item >
360360 ) }
361- { ( ! hub_user || ! hub_user . url . includes ( "AUAF" ) ) && (
361+ { ( ! hub_user || ! hub_user . url ? .includes ( "AUAF" ) ) && (
362362 < div className = { styles . formGroup } >
363363 < Form . Item
364364 label = { t ( "partnerProfile.collaborationGrants" ) }
0 commit comments