Skip to content

Commit 9587e81

Browse files
committed
show input names, or types as backup
1 parent 7cd553a commit 9587e81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content

packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content/FunctionField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ const formSchema = z.object({
5757

5858
const getInputLabel = (input: AbiParameter): string => {
5959
if (!("components" in input)) {
60-
return input.type;
60+
return input.name || input.type;
6161
}
6262

6363
if (input.type === "tuple") {
6464
return input.name || input.type;
6565
} else if (input.type === "tuple[]") {
6666
return `${input.name}[]`;
6767
}
68-
return input.type;
68+
return input.name || input.type;
6969
};
7070

7171
export function FunctionField({ systemId, worldAbi, functionAbi, useSearchParamsArgs }: Props) {

0 commit comments

Comments
 (0)