Skip to content

Commit

Permalink
fix: transaction value showing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
shamim-io authored and He1DAr committed May 24, 2023
1 parent ecd1ca8 commit 7eebc03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/function-summary/result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ export const FunctionSummaryResult = ({ result, txStatus }: FunctionSummaryResul
if (!result) return null;
const { success, type, value } = cvToJSON(hexToCV(result.hex));
const hasType = !type?.includes('UnknownType');

if (type?.includes('tuple')) {
return (
<Box width="100%">
<Pre>{value.type}</Pre>
<Pre>{result?.repr}</Pre>
<Stack mt="32px" spacing="16px" width="100%">
{Object.keys(value.value).map((name: string, index: number) => {
const isLast = Object.keys(value.value).length <= index + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Title = forwardRef<TextProps, 'span'>(({ as, ...props }, ref) => (

export const Pre = forwardRef<TextProps, 'pre'>(({ as = 'pre', ...props }, ref) => (
<Text
display="inline"
display="inline-block"
fontFamily={`"Fira Code", monospace`}
bg={`bg.${useColorMode().colorMode}`}
borderRadius="8px"
Expand Down

0 comments on commit 7eebc03

Please sign in to comment.