Skip to content

Commit d4c16cc

Browse files
committed
chore(web): show-creator-address-on-list-preview
1 parent c578067 commit d4c16cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/utils/submitListUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { TEMPLATE_REGISTRY } from "consts/arbitration";
66
import { ItemDetailsFragment, Status } from "src/graphql/graphql";
77
import { arbitrum } from "viem/chains";
88
import { registrationTemplate, removalTemplate, dataMappings } from "@kleros/curate-v2-templates";
9+
import { useAccount } from "wagmi";
910

1011
export 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

7576
export 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 as string,
8789
},
8890
props,
8991
};

0 commit comments

Comments
 (0)