@@ -143,12 +143,6 @@ export const GrantForm = ({
143143 } ,
144144 } ) ;
145145
146- const { data : participantData } = useParticipantDataQuery ( {
147- variables : {
148- conference : conference ,
149- } ,
150- } ) ;
151-
152146 const inputPlaceholderText = useTranslatedMessage ( "input.placeholder" ) ;
153147 const { user, loading : loadingUser } = useCurrentUser ( { } ) ;
154148 const [ formState , formOptions ] = useFormState < GrantFormFields > (
@@ -208,34 +202,28 @@ export const GrantForm = ({
208202 formState . setField ( "notes" , grant . notes ) ;
209203 formState . setField ( "travellingFrom" , grant . travellingFrom ) ;
210204
211- if ( participantData . me . participant ) {
212- formState . setField (
213- "participantBio" ,
214- participantData . me . participant . bio ,
215- ) ;
216- formState . setField (
217- "participantWebsite" ,
218- participantData . me . participant . website ,
219- ) ;
205+ if ( grant . participant ) {
206+ formState . setField ( "participantBio" , grant . participant . bio ) ;
207+ formState . setField ( "participantWebsite" , grant . participant . website ) ;
220208 formState . setField (
221209 "participantTwitterHandle" ,
222- participantData . me . participant . twitterHandle ,
210+ grant . participant . twitterHandle ,
223211 ) ;
224212 formState . setField (
225213 "participantInstagramHandle" ,
226- participantData . me . participant . instagramHandle ,
214+ grant . participant . instagramHandle ,
227215 ) ;
228216 formState . setField (
229217 "participantLinkedinUrl" ,
230- participantData . me . participant . linkedinUrl ,
218+ grant . participant . linkedinUrl ,
231219 ) ;
232220 formState . setField (
233221 "participantFacebookUrl" ,
234- participantData . me . participant . facebookUrl ,
222+ grant . participant . facebookUrl ,
235223 ) ;
236224 formState . setField (
237225 "participantMastodonHandle" ,
238- participantData . me . participant . mastodonHandle ,
226+ grant . participant . mastodonHandle ,
239227 ) ;
240228 }
241229 formState . setField ( "acceptedPrivacyPolicy" , true ) ;
@@ -668,7 +656,6 @@ export const GrantForm = ({
668656 < Spacer size = "medium" />
669657
670658 < PublicProfileCard
671- me = { participantData . me }
672659 formOptions = { formOptions }
673660 photoRequired = { false }
674661 getParticipantValidationError = { ( field ) =>
0 commit comments