Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 bsx/snek offers composition api #6633

Merged
merged 6 commits into from
Aug 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🔧 masterOffers
  • Loading branch information
roiLeo committed Aug 9, 2023
commit 80e629763b1186f2bfdfbd7426c9169a15214659
17 changes: 0 additions & 17 deletions components/bsx/Offer/MyOffer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,6 @@ const fetchMyOffers = async () => {

watchEffect(async () => await fetchMyOffers())

onMounted(() => {
if (targetAddress.value) {
// $apollo.addSmartQuery<OfferResponse>('offers', {
// client: client.value,
// query: acceptableOfferByCurrentOwner,
// variables: { id: targetAddress.value },
// manual: true,
// result: ({ data }) => setResponse(data),
// pollInterval: 10000,
// })
}
})

const emit = defineEmits(['offersIncoming'])
const offersIncoming = (response: OfferResponse) => {
emit('offersIncoming', (offers.value = response.offers))
Expand Down Expand Up @@ -261,10 +248,6 @@ const isExpired = (expirationBlock: number): boolean => {
watch(accountId, () => {
fetchMyOffers()
})
// watch(componentsProps.address, (newval) => {
// destinationAddress.value = newval
// fetchMyOffers()
// })
</script>

<style scoped>
Expand Down