diff --git a/src/components/Toast/sidebar/referendums/ToastSidebarReferendums.utils.ts b/src/components/Toast/sidebar/referendums/ToastSidebarReferendums.utils.ts index 05ccb294eb..025d850d6b 100644 --- a/src/components/Toast/sidebar/referendums/ToastSidebarReferendums.utils.ts +++ b/src/components/Toast/sidebar/referendums/ToastSidebarReferendums.utils.ts @@ -1,4 +1,5 @@ import { OpenGovReferendum, TAccountVote } from "api/democracy" +import { groupBy } from "utils/rx" type OpenGovReferendumWithVoted = OpenGovReferendum & { readonly hasVoted: boolean @@ -16,7 +17,7 @@ export const splitReferendaByVoted = ( }, ) - const openGovGroup = Object.groupBy(openGovWithVoted, (referendum) => + const openGovGroup = groupBy(openGovWithVoted, (referendum) => String(referendum.hasVoted), ) diff --git a/src/sections/lending/ui/reserve-overview/BorrowInfo.tsx b/src/sections/lending/ui/reserve-overview/BorrowInfo.tsx index 2009c12a99..1f82296fdf 100644 --- a/src/sections/lending/ui/reserve-overview/BorrowInfo.tsx +++ b/src/sections/lending/ui/reserve-overview/BorrowInfo.tsx @@ -218,7 +218,9 @@ export const BorrowInfo = ({   diff --git a/src/sections/lending/ui/table/borrow-assets/BorrowAssetsTable.tsx b/src/sections/lending/ui/table/borrow-assets/BorrowAssetsTable.tsx index 8a2898f5b4..7369ea267a 100644 --- a/src/sections/lending/ui/table/borrow-assets/BorrowAssetsTable.tsx +++ b/src/sections/lending/ui/table/borrow-assets/BorrowAssetsTable.tsx @@ -24,6 +24,7 @@ import { } from "sections/lending/ui/table/borrow-assets/BorrowAssetsTable.utils" import { useAccount } from "sections/web3-connect/Web3Connect.utils" import { theme } from "theme" +import { groupBy } from "utils/rx" export const BorrowAssetsTable = () => { const { t } = useTranslation() @@ -35,7 +36,7 @@ export const BorrowAssetsTable = () => { const { account } = useAccount() const { hollar = [], assets = [] } = useMemo(() => { - return Object.groupBy(data, (reserve) => + return groupBy(data, (reserve) => displayGho({ symbol: reserve.symbol, currentMarket }) ? "hollar" : "assets",