File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { TEMPLATE_REGISTRY } from "consts/arbitration";
6
6
import { ItemDetailsFragment , Status } from "src/graphql/graphql" ;
7
7
import { arbitrum } from "viem/chains" ;
8
8
import { registrationTemplate , removalTemplate , dataMappings } from "@kleros/curate-v2-templates" ;
9
+ import { useAccount } from "wagmi" ;
9
10
10
11
export const constructListParams = ( listData : IListData , listMetadata : IListMetadata ) => {
11
12
const baseTemplate = { ...listData } as IList ;
@@ -73,6 +74,7 @@ export const retrieveSubmittedListId = (eventLog: Log) =>
73
74
} ) . args . _itemID ;
74
75
75
76
export const constructItemWithMockValues = ( data : IListMetadata ) : ItemDetailsFragment => {
77
+ const { address } = useAccount ( ) ;
76
78
const props : ListField & { value : ReturnType < typeof getMockValueForType > } [ ] = [ ] ;
77
79
for ( const column of data . columns ) {
78
80
props . push ( { ...column , value : getMockValueForType ( column . type ) } ) ;
@@ -83,7 +85,7 @@ export const constructItemWithMockValues = (data: IListMetadata): ItemDetailsFra
83
85
status : Status . RegistrationRequested ,
84
86
disputed : false ,
85
87
registerer : {
86
- id : getMockValueForType ( "address" ) as string ,
88
+ id : address ?? ( getMockValueForType ( "address" ) as string ) ,
87
89
} ,
88
90
props,
89
91
} ;
You can’t perform that action at this time.
0 commit comments