Skip to content

Commit

Permalink
Merge pull request #5891 from Jarsen136/issue-5880
Browse files Browse the repository at this point in the history
fix: Withdraw or accept offer wont refresh table
  • Loading branch information
vikiival authored May 14, 2023
2 parents bf6440b + f7cf657 commit f3102e8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion components/gallery/GalleryItemTabsPanel/GalleryItemOffers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const isActive = (row) =>
const { accountId } = useAuth()
const { data } = useGraphql({
const { data, refetch } = useGraphql({
queryName: 'offerListByNftId',
queryPrefix: 'chain-bsx',
variables: {
Expand All @@ -125,6 +125,17 @@ const { data } = useGraphql({
},
})
useSubscriptionGraphql({
query: `offers(where: { nft: { id_eq: "${dprops.nftId}" } }) {
id
caller
expiration
price
status
}`,
onChange: refetch,
})
const { data: dataCollection } = useGraphql({
queryName: 'collectionById',
variables: {
Expand Down

0 comments on commit f3102e8

Please sign in to comment.