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";
66import { ItemDetailsFragment , Status } from "src/graphql/graphql" ;
77import { arbitrum } from "viem/chains" ;
88import { registrationTemplate , removalTemplate , dataMappings } from "@kleros/curate-v2-templates" ;
9+ import { useAccount } from "wagmi" ;
910
1011export const constructListParams = ( listData : IListData , listMetadata : IListMetadata ) => {
1112 const baseTemplate = { ...listData } as IList ;
@@ -73,6 +74,7 @@ export const retrieveSubmittedListId = (eventLog: Log) =>
7374 } ) . args . _itemID ;
7475
7576export const constructItemWithMockValues = ( data : IListMetadata ) : ItemDetailsFragment => {
77+ const { address } = useAccount ( ) ;
7678 const props : ListField & { value : ReturnType < typeof getMockValueForType > } [ ] = [ ] ;
7779 for ( const column of data . columns ) {
7880 props . push ( { ...column , value : getMockValueForType ( column . type ) } ) ;
@@ -83,7 +85,7 @@ export const constructItemWithMockValues = (data: IListMetadata): ItemDetailsFra
8385 status : Status . RegistrationRequested ,
8486 disputed : false ,
8587 registerer : {
86- id : getMockValueForType ( "address" ) as string ,
88+ id : address ?? ( getMockValueForType ( "address" ) as string ) ,
8789 } ,
8890 props,
8991 } ;
You can’t perform that action at this time.
0 commit comments