Skip to content

Commit 90a72fc

Browse files
zone-livejoaoloureirop
authored andcommitted
fix: apr display value
1 parent 223de32 commit 90a72fc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/components/UI/Earn/Views/EarnInputView/EarnInputView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ const EarnInputView = () => {
881881
navBarEventOptions,
882882
///: BEGIN:ONLY_INCLUDE_IF(tron)
883883
earnToken,
884-
tronApyPercent,
884+
isTronEnabled ? tronApyPercent : null,
885885
///: END:ONLY_INCLUDE_IF
886886
),
887887
);
@@ -897,6 +897,7 @@ const EarnInputView = () => {
897897
earnToken?.name,
898898
earnToken,
899899
///: BEGIN:ONLY_INCLUDE_IF(tron)
900+
isTronEnabled,
900901
tronApyPercent,
901902
///: END:ONLY_INCLUDE_IF
902903
]);

app/components/UI/Earn/Views/EarnWithdrawInputView/EarnWithdrawInputView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ const EarnWithdrawInputView = () => {
347347
navBarEventOptions,
348348
///: BEGIN:ONLY_INCLUDE_IF(tron)
349349
receiptTokenToUse,
350-
tronApyPercent,
350+
isTronEnabled ? tronApyPercent : null,
351351
///: END:ONLY_INCLUDE_IF
352352
),
353353
);
@@ -359,6 +359,7 @@ const EarnWithdrawInputView = () => {
359359
isLending,
360360
tokenLabel,
361361
///: BEGIN:ONLY_INCLUDE_IF(tron)
362+
isTronEnabled,
362363
receiptTokenToUse,
363364
tronApyPercent,
364365
///: END:ONLY_INCLUDE_IF

0 commit comments

Comments
 (0)