Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Feb 6, 2025
1 parent ceb1953 commit 30cb4a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 8 additions & 10 deletions components/factory/modals/updateDenomMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ export default function UpdateDenomMetadataModal({
sender: admin,
metadata: {
description: values.description || formData.description,
denomUnits:
[
{ denom: fullDenom, exponent: 0, aliases: [symbol] },
{ denom: symbol, exponent: 6, aliases: [fullDenom] },
] || formData.denomUnits,
denomUnits: [
{ denom: fullDenom, exponent: 0, aliases: [symbol] },
{ denom: symbol, exponent: 6, aliases: [fullDenom] },
],

Check warning on line 103 in components/factory/modals/updateDenomMetadata.tsx

View check run for this annotation

Codecov / codecov/patch

components/factory/modals/updateDenomMetadata.tsx#L100-L103

Added lines #L100 - L103 were not covered by tests
base: fullDenom,
display: symbol,
name: values.name || formData.name,
Expand All @@ -122,11 +121,10 @@ export default function UpdateDenomMetadataModal({
sender: address,
metadata: {
description: values.description || formData.description,
denomUnits:
[
{ denom: fullDenom, exponent: 0, aliases: [symbol] },
{ denom: symbol, exponent: 6, aliases: [fullDenom] },
] || formData.denomUnits,
denomUnits: [
{ denom: fullDenom, exponent: 0, aliases: [symbol] },
{ denom: symbol, exponent: 6, aliases: [fullDenom] },
],

Check warning on line 127 in components/factory/modals/updateDenomMetadata.tsx

View check run for this annotation

Codecov / codecov/patch

components/factory/modals/updateDenomMetadata.tsx#L124-L127

Added lines #L124 - L127 were not covered by tests
base: fullDenom,
display: symbol,
name: values.name || formData.name,
Expand Down
4 changes: 3 additions & 1 deletion components/groups/components/groupControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useRouter } from 'next/router';

import VoteDetailsModal from '@/components/groups/modals/voteDetailsModal';
import { useGroupsByMember } from '@/hooks/useQueries';
import { useChain } from '@cosmos-kit/react';
import { useChain, useChains } from '@cosmos-kit/react';
import { MemberSDKType } from '@liftedinit/manifestjs/dist/codegen/cosmos/group/v1/types';
import { ArrowRightIcon } from '@/components/icons';
import ProfileAvatar from '@/utils/identicon';
Expand Down Expand Up @@ -230,6 +230,7 @@ export default function GroupControls({
}

const { address } = useChain(env.chain);
const chains = useChains([env.chain, env.osmosisChain, env.axelarChain]);
const { groupByMemberData } = useGroupsByMember(address ?? '');

useEffect(() => {
Expand Down Expand Up @@ -603,6 +604,7 @@ export default function GroupControls({
isGroup={true}
admin={policyAddress}
refetchProposals={refetchProposals}
chains={chains}
/>
)}
</div>
Expand Down

0 comments on commit 30cb4a8

Please sign in to comment.