show srm deposit and withdraw when margin acc doesnt exist

This commit is contained in:
Tyler Shipe 2021-05-04 19:24:43 -04:00
parent 02b2fed058
commit 1ebae0eb07
1 changed files with 1 additions and 4 deletions

View File

@ -13,9 +13,6 @@ const FeeDiscountsTable = () => {
const { totalSrm, rates } = useSrmAccount() const { totalSrm, rates } = useSrmAccount()
const connected = useMangoStore((s) => s.wallet.connected) const connected = useMangoStore((s) => s.wallet.connected)
const contributedSrm = useMangoStore((s) => s.wallet.contributedSrm) const contributedSrm = useMangoStore((s) => s.wallet.contributedSrm)
const selectedMarginAccount = useMangoStore(
(s) => s.selectedMarginAccount.current
)
const handleCloseDeposit = useCallback(() => { const handleCloseDeposit = useCallback(() => {
setShowDeposit(false) setShowDeposit(false)
@ -29,7 +26,7 @@ const FeeDiscountsTable = () => {
<div <div
className={`flex flex-col items-center bg-th-bkg-1 py-6 mt-4 rounded-md`} className={`flex flex-col items-center bg-th-bkg-1 py-6 mt-4 rounded-md`}
> >
{connected && selectedMarginAccount ? ( {connected ? (
<div className="mb-6"> <div className="mb-6">
<div className="bg-th-bkg-2 p-6 rounded"> <div className="bg-th-bkg-2 p-6 rounded">
<div className="text-th-fgd-4 text-center"> <div className="text-th-fgd-4 text-center">