Skip to content

Commit

Permalink
➕ add: 수익률 positive일 때 + 붙이기
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 5, 2024
1 parent 41f93f3 commit 76cb795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FE/src/components/Mypage/AccountCondition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function AccountCondition({ asset }: AccountConditionProps) {
<p
className={`${is_positive ? 'text-juga-red-60' : 'text-juga-blue-50'}`}
>
{total_profit_rate}%
{(+total_profit_rate > 0 ? '+' : '') + total_profit_rate}%
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion FE/src/components/Mypage/MyStocksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function MyStocksList({ stocks }: MyStocksListProps) {
<p
className={`w-1/6 truncate text-right ${stockYield < 0 ? 'text-juga-blue-50' : 'text-juga-red-60'}`}
>
{stockYield.toFixed(2)}%
{(stockYield > 0 ? '+' : '') + stockYield.toFixed(2)}%
</p>
</li>
);
Expand Down

0 comments on commit 76cb795

Please sign in to comment.