diff --git a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx index a5b80d52b4..d2c5ff5078 100644 --- a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx +++ b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx @@ -31,7 +31,6 @@ import { useWalletContext } from "~/components/useWalletContext"; const CLOSE_BALANCE_TOAST_ID = "close-balance"; const BORROW_OR_LEND_TOAST_ID = "borrow-or-lend"; -const REFRESH_ACCOUNT_TOAST_ID = "refresh-account"; const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => ( @@ -140,23 +139,10 @@ const AssetRow: FC<{ setBorrowOrLendAmount(0); - toast.loading("Refreshing state", { toastId: REFRESH_ACCOUNT_TOAST_ID }); try { setIsRefreshingStore(true); await fetchMrgnlendState(); - toast.update(REFRESH_ACCOUNT_TOAST_ID, { - render: "Refreshing state 👍", - type: toast.TYPE.SUCCESS, - autoClose: 2000, - isLoading: false, - }); } catch (error: any) { - toast.update(REFRESH_ACCOUNT_TOAST_ID, { - render: `Error while reloading state: ${error.message}`, - type: toast.TYPE.ERROR, - autoClose: 5000, - isLoading: false, - }); console.log("Error while reloading state"); console.log(error); } @@ -290,23 +276,10 @@ const AssetRow: FC<{ setBorrowOrLendAmount(0); // -------- Refresh state - toast.loading("Refreshing state", { toastId: REFRESH_ACCOUNT_TOAST_ID }); try { setIsRefreshingStore(true); await fetchMrgnlendState(); - toast.update(REFRESH_ACCOUNT_TOAST_ID, { - render: "Refreshing state 👍", - type: toast.TYPE.SUCCESS, - autoClose: 2000, - isLoading: false, - }); } catch (error: any) { - toast.update(REFRESH_ACCOUNT_TOAST_ID, { - render: `Error while reloading state: ${error.message}`, - type: toast.TYPE.ERROR, - autoClose: 5000, - isLoading: false, - }); console.log("Error while reloading state"); console.log(error); } diff --git a/apps/marginfi-v2-ui/src/components/Navbar/Navbar.tsx b/apps/marginfi-v2-ui/src/components/Navbar/Navbar.tsx index 25495a6d27..9f7d68daa6 100644 --- a/apps/marginfi-v2-ui/src/components/Navbar/Navbar.tsx +++ b/apps/marginfi-v2-ui/src/components/Navbar/Navbar.tsx @@ -110,9 +110,9 @@ const Navbar: FC = () => { return (
-