@@ -111,7 +111,9 @@ export default function Form({
111
111
const allProjectMetadata = state . grantsMetadata ;
112
112
const { chainID } = state . web3 ;
113
113
114
+ console . log ( "allProjectMetadata" , allProjectMetadata ) ;
114
115
const projectIds = Object . keys ( allProjectMetadata ) ;
116
+ console . log ( "projectIds" , projectIds ) ;
115
117
116
118
return {
117
119
anchors : state . projects . anchor ,
@@ -139,6 +141,7 @@ export default function Form({
139
141
let selectedProjectMetadata : Metadata | undefined ;
140
142
let createLinkedProject = false ;
141
143
144
+ // VERIFY LOGIC AFTER POPULATING linkedChains
142
145
if ( selectedProjectID !== undefined && selectedProjectID !== "" ) {
143
146
selectedProjectMetadata =
144
147
props . allProjectMetadata [ selectedProjectID ] ?. metadata ;
@@ -302,11 +305,15 @@ export default function Form({
302
305
303
306
useEffect ( ( ) => {
304
307
const currentOptions = props . projectIDs . map ( ( id ) : ProjectOption => {
308
+ console . log ( "currentOptions: id" , id ) ;
305
309
const chainId = props . allProjectMetadata [ id ] ! . metadata ! . chainId ! ;
306
-
310
+ console . log ( "currentOptions: chainId" , chainId ) ;
307
311
const chain = getChainById ( chainId ) ;
312
+ console . log ( "currentOptions: chain" , chain ) ;
308
313
const chainName = chain . prettyName ;
314
+ console . log ( "currentOptions: chainName" , chainName ) ;
309
315
const { icon } = chain ;
316
+ console . log ( "currentOptions: icon" , icon ) ;
310
317
311
318
return {
312
319
id,
@@ -319,7 +326,7 @@ export default function Form({
319
326
} ;
320
327
} ) ;
321
328
currentOptions . unshift ( { id : undefined , title : "" , chainInfo : undefined } ) ;
322
-
329
+ console . log ( "currentOptions: currentOptions" , currentOptions ) ;
323
330
setProjectOptions ( currentOptions ) ;
324
331
} , [ props . allProjectMetadata ] ) ;
325
332
@@ -402,6 +409,8 @@ export default function Form({
402
409
return null ;
403
410
}
404
411
412
+ console . log ( "answers" , answers ) ;
413
+
405
414
if ( input . type === "project" ) {
406
415
return readOnly ? (
407
416
< TextInput
0 commit comments