Skip to content

Commit

Permalink
WIP: Fixing FeedItemCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Nopfed committed Dec 4, 2023
1 parent 892bb00 commit cde6781
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/FeedItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<script setup lang="ts">
import { VImg } from 'vuetify/lib/components/index.mjs'
import {
CollaborativeWhitelistCurationState
type CollaborativeWhitelistCurationState
} from '@artbycity/sdk/dist/web/curations'

const img = ref<VImg>()
Expand All @@ -124,11 +124,18 @@ const gatewayBase = `${protocol}://${host}:${port}`
const isCuration = ref<boolean>(false)

const { data, pending } = useLazyAsyncData(props.id, async () => {
const checkId = await abc.curations.getTransaction(props.id)
const checkId = await abc.curations.get(props.id)

if (checkId) {
if (checkId.tags.find(o => o.name === 'Entity-Type')?.value === 'curation'){
if (
checkId
.tags
.find(o => o.name === 'Entity-Type')?
.value === 'curation'
) {

isCuration.value = true

try {
const curation = abc
.curations
Expand Down

0 comments on commit cde6781

Please sign in to comment.