Skip to content

Commit

Permalink
fix: fix text anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Apr 1, 2024
1 parent df43cd2 commit ba906d3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/DrepDetail/index.tsx
Expand Up @@ -115,7 +115,7 @@ const DrepDetail = () => {
value={data?.anchorUrl || ""}
sxFirstPart={{ maxWidth: width > 600 ? "calc(100% - 60px)" : "calc(100% - 70px)" }}
postfix={5}
sx={{ width: "fit-content", cursor: "pointer" }}
sx={{ width: data?.anchorUrl.length > 25 ? "100%" : "fit-content", cursor: "pointer" }}
isNoLimitPixel={true}
isTooltip
/>
Expand Down Expand Up @@ -165,7 +165,11 @@ const DrepDetail = () => {
{t("drep.activeVoteStake")}
</TitleCard>
),
value: <ValueCard>{formatADA(data?.activeVoteStake || 0)} ADA</ValueCard>
value: (
<ValueCard>
{data?.liveStake !== null ? `${formatADA(data?.activeVoteStake || 0)} ADA` : t("common.N/A")}{" "}
</ValueCard>
)
},
{
icon: LiveStakeDrepIcon,
Expand All @@ -175,7 +179,9 @@ const DrepDetail = () => {
{t("drep.liveStake")}
</TitleCard>
),
value: <ValueCard>{formatADA(data?.liveStake || 0)} ADA</ValueCard>
value: (
<ValueCard>{data?.liveStake !== null ? `${formatADA(data?.liveStake || 0)} ADA` : t("common.N/A")} </ValueCard>
)
},
{
icon: DelegatorsDrepIcon,
Expand Down

0 comments on commit ba906d3

Please sign in to comment.