Skip to content

Commit

Permalink
fix: displayBlack issue on infos
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGbz committed Jan 7, 2025
1 parent 48158e4 commit 5c41e27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/incentives/IncentivesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface IncentivesCardProps {
tooltip?: ReactNode;
market: string;
protocolAction?: ProtocolAction;
displayBlank?: boolean;
}

export const hasIncentivesCheck = (incentives: IncentivesBoxProps) => {
Expand Down Expand Up @@ -65,7 +66,7 @@ export const IncentivesBox = ({
market,
protocolAction,
isInModal,
displayBlank = true,
displayBlank,
}: IncentivesBoxProps) => {
const incentivesBoxProps: IncentivesBoxProps = {
symbol,
Expand Down Expand Up @@ -128,6 +129,7 @@ export const IncentivesCard = (incentivesCardProps: IncentivesCardProps) => {
tooltip,
market,
protocolAction,
displayBlank,
} = incentivesCardProps;

return (
Expand Down Expand Up @@ -162,6 +164,7 @@ export const IncentivesCard = (incentivesCardProps: IncentivesCardProps) => {
address={address}
market={market}
protocolAction={protocolAction}
displayBlank={displayBlank}
/>
</Box>
);
Expand Down
1 change: 1 addition & 0 deletions src/modules/reserve-overview/BorrowInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const BorrowInfo = ({
market={currentMarketData.market}
address={reserve.variableDebtTokenAddress}
protocolAction={ProtocolAction.borrow}
displayBlank={true}
variant="main16"
align="start"
/>
Expand Down
1 change: 1 addition & 0 deletions src/modules/reserve-overview/SupplyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export const SupplyInfo = ({
market={currentMarketData.market}
address={reserve.aTokenAddress}
protocolAction={ProtocolAction.supply}
displayBlank={true}
variant="main16"
align="start"
/>
Expand Down

0 comments on commit 5c41e27

Please sign in to comment.