From 1ebae0eb074e31554e597b9f20477da27a76e5d0 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Tue, 4 May 2021 19:24:43 -0400 Subject: [PATCH] show srm deposit and withdraw when margin acc doesnt exist --- components/FeeDiscountsTable.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/FeeDiscountsTable.tsx b/components/FeeDiscountsTable.tsx index 33b7b1f..9116760 100644 --- a/components/FeeDiscountsTable.tsx +++ b/components/FeeDiscountsTable.tsx @@ -13,9 +13,6 @@ const FeeDiscountsTable = () => { const { totalSrm, rates } = useSrmAccount() const connected = useMangoStore((s) => s.wallet.connected) const contributedSrm = useMangoStore((s) => s.wallet.contributedSrm) - const selectedMarginAccount = useMangoStore( - (s) => s.selectedMarginAccount.current - ) const handleCloseDeposit = useCallback(() => { setShowDeposit(false) @@ -29,7 +26,7 @@ const FeeDiscountsTable = () => {
- {connected && selectedMarginAccount ? ( + {connected ? (