Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { OpenGovReferendum, TAccountVote } from "api/democracy"
import { groupBy } from "utils/rx"

type OpenGovReferendumWithVoted = OpenGovReferendum & {
readonly hasVoted: boolean
Expand All @@ -16,7 +17,7 @@ export const splitReferendaByVoted = (
},
)

const openGovGroup = Object.groupBy(openGovWithVoted, (referendum) =>
const openGovGroup = groupBy(openGovWithVoted, (referendum) =>
String(referendum.hasVoted),
)

Expand Down
4 changes: 3 additions & 1 deletion src/sections/lending/ui/reserve-overview/BorrowInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ export const BorrowInfo = ({
<a
target="_blank"
css={{ textDecoration: "underline" }}
href={currentMarketData.addresses.COLLECTOR}
href={currentNetworkConfig.explorerLinkBuilder({
address: currentMarketData.addresses.COLLECTOR,
})}
rel="noreferrer"
>
&nbsp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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",
Expand Down