fix build errors

This commit is contained in:
padreug 2025-09-17 02:29:15 +02:00
parent 8c39ca3599
commit 2a9915a727
7 changed files with 18 additions and 20 deletions

View file

@ -10,7 +10,7 @@ import { useReactions } from '../composables/useReactions'
import appConfig from '@/app.config'
import type { ContentFilter } from '../services/FeedService'
import MarketProduct from './MarketProduct.vue'
import { parseMarketProduct, isMarketEvent, getMarketEventType } from '../utils/marketParser'
import { parseMarketProduct } from '../utils/marketParser'
interface Emits {
(e: 'reply-to-note', note: { id: string; content: string; pubkey: string }): void
@ -140,7 +140,8 @@ function getMarketProductData(note: any) {
content: note.content,
created_at: note.created_at,
kind: note.kind,
tags: note.tags
tags: note.tags,
sig: '' // Required by Event interface
}
return parseMarketProduct(mockEvent)
}
@ -313,11 +314,11 @@ async function onToggleLike(note: any) {
Reply
</Badge>
<Badge
v-if="isMarketEvent({ kind: note.kind })"
v-if="note.kind === 30018"
variant="outline"
class="text-xs px-1.5 py-0.5"
>
{{ getMarketEventType({ kind: note.kind }) }}
Market Product
</Badge>
<Badge
v-if="isRidesharePost(note)"