From ccd7a2c8dc8bc07bbc4c1ab36ce523ac3c5296c8 Mon Sep 17 00:00:00 2001 From: DinhTran Date: Fri, 1 Mar 2024 10:54:43 +0700 Subject: [PATCH] fix: update logic display status epoch --- .../commons/Epoch/FirstEpoch/index.tsx | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/src/components/commons/Epoch/FirstEpoch/index.tsx b/src/components/commons/Epoch/FirstEpoch/index.tsx index bee1621e02..40764c460b 100644 --- a/src/components/commons/Epoch/FirstEpoch/index.tsx +++ b/src/components/commons/Epoch/FirstEpoch/index.tsx @@ -37,27 +37,35 @@ export default function FirstEpoch({ data: currentEpochData, onClick }: IProps) icon: ExchangeIcon, hideHeader: true, title: ( - + {currentEpochData?.no} ), value: ( - - {`${progress}%`} - - {EPOCH_STATUS_MAPPING[EPOCH_STATUS[currentEpochData?.status]]} - - + {currentEpochData?.status === "SYNCING" ? ( + + + {EPOCH_STATUS_MAPPING[EPOCH_STATUS[currentEpochData?.status]]} + + + ) : ( + + {`${progress}%`} + + {EPOCH_STATUS_MAPPING[EPOCH_STATUS[currentEpochData?.status]]} + + + )} ) },