Skip to content

Commit

Permalink
477/base/proposal return null (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
yayay927 committed Nov 3, 2021
1 parent a282340 commit a186101
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/pages/proposals/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import TokenDetails from '@src/screens/proposal_details';
import ProposalDetails from '@src/screens/proposal_details';

const TokenDetailsPage = () => {
return (
<TokenDetails />
<ProposalDetails />
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ const Desktop: React.FC<{
const formattedItems = items.map((x) => {
return ({
depositor: (
<AvatarName
address={x.user.address}
imageUrl={x.user.imageUrl}
name={x.user.name}
/>
<>
{x.user.address ? (
<AvatarName
address={x.user.address}
imageUrl={x.user.imageUrl}
name={x.user.name}
/>
) : (
<>-</>
)}
</>
),
amount: `${numeral(x.amount.value).format(x.amount.format)} ${x.amount.denom.toUpperCase()}`,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ const Mobile: React.FC<{
const formattedItems = items.map((x) => {
return ({
depositor: (
<AvatarName
address={x.user.address}
imageUrl={x.user.imageUrl}
name={x.user.name}
/>
<>
{x.user.address ? (
<AvatarName
address={x.user.address}
imageUrl={x.user.imageUrl}
name={x.user.name}
/>
) : (
<>-</>
)}
</>
),
amount: `${numeral(x.amount.value).format(x.amount.format)} ${x.amount.denom.toUpperCase()}`,
});
Expand Down

0 comments on commit a186101

Please sign in to comment.