Skip to content

Commit

Permalink
fix: code cleanup (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored Oct 24, 2024
1 parent 2566580 commit df1b0cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/app/oracles.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe('oracles', () => {
cy.get('.oracles-table__data').first()
.invoke('text')
.should(hash2 => {
console.log('hash2', hash2)
expect(hash1).not.to.eq(hash2)
})
})
Expand All @@ -37,7 +36,6 @@ describe('oracles', () => {
cy.get('.oracles-table__data').first()
.invoke('text')
.should(hash2 => {
console.log('hash2', hash2)
expect(hash1).to.eq(hash2)
})
})
Expand Down
3 changes: 1 addition & 2 deletions src/stores/accountDetails.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineStore, storeToRefs } from 'pinia'
import { isAddressValid } from '@aeternity/aepp-sdk'
import { useRuntimeConfig } from 'nuxt/app'
import useAxios from '@/composables/useAxios'
import { useMarketStatsStore } from '@/stores/marketStats'
import { adaptAccountActivities, adaptAccountNames, adaptAccountTokens, adaptTransactions } from '@/utils/adapters'
import { formatAettosToAe } from '@/utils/format'
import { useDexStore } from '@/stores/dex'
import { isAddressValid } from "@aeternity/aepp-sdk";

export const useAccountStore = defineStore('account', () => {
const {
Expand Down Expand Up @@ -109,7 +109,6 @@ export const useAccountStore = defineStore('account', () => {
const defaultParameters = `/v3/names?owned_by=${accountId}&by=name&direction=forward&state=active&limit=${limit ?? 10}`
const { data } = await axios.get(`${MIDDLEWARE_URL}${queryParameters || defaultParameters}`)
rawAccountNames.value = data
console.log('rawAccountNames.value', rawAccountNames.value)
}

async function fetchAccountTokens({ accountId, queryParameters, limit } = {}) {
Expand Down
2 changes: 0 additions & 2 deletions src/stores/nameDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export const useNameDetailsStore = defineStore('nameDetails', () => {
rawName.value = data
}

// todo history issue
// todo close time count function
async function fetchNameActions({ nameHash = null, queryParameters = null }) {
rawNameActions.value = null
const defaultParameters = `/v3/names/${nameHash}/history`
Expand Down
10 changes: 5 additions & 5 deletions src/stores/nftDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export const useNftDetailsStore = defineStore('nftDetails', () => {

await Promise.all([
fetchNft(),
// Promise.allSettled([
// fetchNftTransfers(),
// fetchNftInventory(),
// fetchNftOwners(),
// ]),
Promise.allSettled([
fetchNftTransfers(),
fetchNftInventory(),
fetchNftOwners(),
]),
])

return true
Expand Down

0 comments on commit df1b0cd

Please sign in to comment.