Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3110 from cardano-foundation/fix/display-protocol…
Browse files Browse the repository at this point in the history
…-data

fix: display data histories on ios
  • Loading branch information
Sotatek-TaiTruong authored Mar 4, 2024
2 parents e8f0063 + b7d12a8 commit 09c310a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ProtocolParameter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const ProtocolParameter: React.FC = () => {
>;
return {
name,
value: name === "costModel" ? JSON.stringify(valueObject) : convertedObj?.value,
value: name === "costModel" ? getShortValue(JSON.stringify(valueObject)) : convertedObj?.value,
epochNo: convertedObj?.epochNo,
time: convertedObj?.time
};
Expand Down Expand Up @@ -171,7 +171,7 @@ const ProtocolParameter: React.FC = () => {
textOverflow={"ellipsis"}
color={({ palette }) => (isModalType ? palette.primary.main : "unset")}
>
{r.value}
{getShortValue(r.value?.toString())}
</Box>
</Box>
);
Expand Down

0 comments on commit 09c310a

Please sign in to comment.