Skip to content

Commit

Permalink
fix: count type
Browse files Browse the repository at this point in the history
  • Loading branch information
songwongtp committed Dec 20, 2023
1 parent 69f4be5 commit 54dc974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/pages/module-details/components/ModuleActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface ActionInfo {
icon: IconKeys;
iconColor: string;
name: string;
count: number | string;
count: Option<number>;
onClick: MouseEventHandler<HTMLDivElement>;
disabled: boolean;
}
Expand Down Expand Up @@ -51,7 +51,7 @@ export const ModuleActions = ({
icon: "list" as IconKeys,
iconColor: "gray.600",
name: "Transactions",
count: allTxsCount ?? "N/A",
count: allTxsCount,
onClick: () => onSelectAction(TabIndex.TxsHistories),
disabled: allTxsCount === 0,
},
Expand Down Expand Up @@ -92,7 +92,7 @@ export const ModuleActions = ({
{item.name}
</Text>
<Heading as="h6" variant="h6" fontWeight={600}>
{item.count}
{item.count ?? "N/A"}
</Heading>
</Flex>
</Flex>
Expand Down

0 comments on commit 54dc974

Please sign in to comment.