Skip to content

Commit 57fb7fc

Browse files
authored
[Dashboard] Fix CodeSnippet page (#4386)
1 parent 70f051d commit 57fb7fc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -903,11 +903,14 @@ export const CodeOverview: React.FC<CodeOverviewProps> = ({
903903
?.filter(
904904
(f) => f.type === "function" || f.type === "event",
905905
)
906-
?.find((f) =>
907-
f.type === "function"
908-
? f.name ===
909-
(tab === "read" ? read?.name : write?.name)
910-
: f.name === event?.name,
906+
?.find(
907+
(f) =>
908+
f.name ===
909+
(tab === "read"
910+
? read?.name
911+
: tab === "write"
912+
? write?.name
913+
: event?.name),
911914
)
912915
?.inputs.map((i) => i.name || "") || [],
913916

0 commit comments

Comments
 (0)