Skip to content

Commit

Permalink
fix: modified rendering news list (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
impelcrypto committed Nov 2, 2023
1 parent 8bae1d5 commit 1d6248b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/dapp-staking/my-staking/components/NewsArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,16 @@ export default defineComponent({
if (result.value) {
// Currently only one tag can be displayed on UI, so let's pick the first one
// link property is missing from SubSocial data.
items.value = result.value.posts.map((x: Data) => {
return {
tag: x.tag.split(',')[0],
title: x.title,
link: x.link,
img: 'https://ipfs.subsocial.network/ipfs/' + x.img,
};
});
items.value = result.value.posts
.map((x: Data) => {
return {
tag: x.tag && x.tag.includes(',') ? x.tag.split(',')[0] : x.tag,
title: x.title,
link: x.link,
img: 'https://ipfs.subsocial.network/ipfs/' + x.img,
};
})
.filter((x: Data) => x.tag !== null);
setDataArray();
handlePageUpdate();
}
Expand Down

1 comment on commit 1d6248b

@4everland
Copy link

@4everland 4everland bot commented on 1d6248b Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following parameters

parameters Value
IC b5oiz-tyaaa-aaaag-abp6a-cai
Assigned domain https://b5oiz-tyaaa-aaaag-abp6a-cai.ic0.app/
Custom domain https://decentralized.portal.astar.network

Please sign in to comment.