Skip to content

Commit

Permalink
fix(withdrawmodal): susd dropdown (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff authored May 21, 2024
1 parent 1839cfc commit 57ed912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const AssetsRow = ({
final,
}: AssetsRowProps) => {
const { isOpen, onOpen, onClose } = useDisclosure();

const canWithdraw = unlockDate.getTime() < new Date().getTime();

const hoursToWithdraw = canWithdraw
Expand Down
9 changes: 4 additions & 5 deletions liquidity/ui/src/components/WithdrawModal/WithdrawModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ export function WithdrawModal({ isOpen, onClose }: { isOpen: boolean; onClose: (
return type;
});

const collateralTypeDisplayName = collateralTypesHydated?.find(
(item) => item.tokenAddress === selectedCollateralType
)?.symbol;
const collateralTypeDisplayName =
collateralTypesHydated?.find((item) => item.tokenAddress === selectedCollateralType)?.symbol ||
'sUSD';

return (
<Modal
isOpen={isOpen}
isCentered
onClose={() => {
setAmount(new Wei(0));
setAmount(ZEROWEI);
onClose();
}}
>
Expand Down Expand Up @@ -216,7 +216,6 @@ export function WithdrawModal({ isOpen, onClose }: { isOpen: boolean; onClose: (
{!isBase && (
<MenuItem
onClick={() => setSelectedCollateralType(usdTokens?.snxUSD || '')}
key={usdTokens?.snxUSD.concat('-base')}
>
<TokenIcon mr={1} height={16} width={16} symbol="sUSD" />
sUSD
Expand Down

0 comments on commit 57ed912

Please sign in to comment.