From a3d9a2c19853d4fe9cdcc87eadcfc075afdfcf3c Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Thu, 13 Apr 2023 14:04:05 +0200 Subject: [PATCH] Show all holdings --- components/dataViews/MultisigHoldings.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/dataViews/MultisigHoldings.tsx b/components/dataViews/MultisigHoldings.tsx index cda5701..ad646c0 100644 --- a/components/dataViews/MultisigHoldings.tsx +++ b/components/dataViews/MultisigHoldings.tsx @@ -1,12 +1,10 @@ -import React from "react"; import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin"; - import { useAppContext } from "../../context/AppContext"; import { printableCoin } from "../../lib/displayHelpers"; import StackableContainer from "../layout/StackableContainer"; interface Props { - holdings: Coin | null; + holdings: readonly Coin[]; } const MultisigHoldings = (props: Props) => { @@ -15,8 +13,10 @@ const MultisigHoldings = (props: Props) => {

Holdings

- {props.holdings ? ( - {printableCoin(props.holdings, state.chain)} + {props.holdings.length ? ( + props.holdings.map((holding) => ( + {printableCoin(holding, state.chain)} + )) ) : ( None )}