Skip to content

Commit 4240263

Browse files
committed
fix: 파이차트 소수 단위표시 제거
텍스트가 길어지면 <text/>가 잘리는 현상이 있어서 소수점 단위는 제거 했습니다.
1 parent b09bc6a commit 4240263

File tree

1 file changed

+1
-1
lines changed
  • src/features/profile/ui/CoinPieChartActiveShape

1 file changed

+1
-1
lines changed

src/features/profile/ui/CoinPieChartActiveShape/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function CoinPieChartActiveShape({
8282
textAnchor={textAnchor}
8383
fill="#333"
8484
fontSize={14}
85-
>{`${((percent ?? 1) * 100).toFixed(2)}%`}</text>
85+
>{`${((percent ?? 1) * 100).toFixed(0)}%`}</text>
8686
</g>
8787
);
8888
}

0 commit comments

Comments
 (0)