From aca5d00dc6d8cb6b9b89badc51cf64c2928f07f4 Mon Sep 17 00:00:00 2001 From: dinhtran Date: Mon, 4 Mar 2024 16:44:33 +0700 Subject: [PATCH 1/2] fix: display data histories on ios --- src/pages/ProtocolParameter/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ProtocolParameter/index.tsx b/src/pages/ProtocolParameter/index.tsx index 7cde75666e..0b74e18524 100644 --- a/src/pages/ProtocolParameter/index.tsx +++ b/src/pages/ProtocolParameter/index.tsx @@ -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 }; From b7d12a806994781b5d04b97225cfcee58d16b4ba Mon Sep 17 00:00:00 2001 From: dinhtran Date: Mon, 4 Mar 2024 17:07:01 +0700 Subject: [PATCH 2/2] fix: display data histories on ios --- src/pages/ProtocolParameter/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ProtocolParameter/index.tsx b/src/pages/ProtocolParameter/index.tsx index 0b74e18524..1818f75834 100644 --- a/src/pages/ProtocolParameter/index.tsx +++ b/src/pages/ProtocolParameter/index.tsx @@ -171,7 +171,7 @@ const ProtocolParameter: React.FC = () => { textOverflow={"ellipsis"} color={({ palette }) => (isModalType ? palette.primary.main : "unset")} > - {r.value} + {getShortValue(r.value?.toString())} );