Skip to content

Commit

Permalink
remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek committed Aug 21, 2024
1 parent a1867c3 commit 1e848e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/TokenEventsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import TokenEventsTable from '@/components/TokenEventsTable.vue'
import TokenEventsTableCondensed from '@/components/TokenEventsTableCondensed.vue'
const { tokenEvents, tokenEventsCount } = storeToRefs(useTokenDetailsStore())
const { fetchTokenEvents } = useTokenDetailsStore()
const { fetchTokenEvents, fetchTokenEventsCount } = useTokenDetailsStore()
const route = useRoute()
function loadPrevEvents() {
Expand All @@ -36,6 +36,8 @@ function loadNextEvents() {
fetchTokenEvents({ queryParameters: tokenEvents.value.next })
}
await fetchTokenEventsCount(route.params.id)
if (process.client) {
const limit = computed(() => isDesktop() ? 10 : 3)
await fetchTokenEvents({
Expand Down
6 changes: 3 additions & 3 deletions src/stores/names.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useNamesStore = defineStore('names', () => {
async function fetchActiveNames({ queryParameters, limit } = {}) {
rawActiveNames.value = null
const { data } = await axios.get(
`${MIDDLEWARE_URL}${queryParameters || `/v2/names?state=active&expand=true&by=deactivation&direction=forward&limit=${limit ?? 10}`}`,
`${MIDDLEWARE_URL}${queryParameters || `/v2/names?state=active&by=deactivation&direction=forward&limit=${limit ?? 10}`}`,
)
rawActiveNames.value = data
}
Expand All @@ -63,13 +63,13 @@ export const useNamesStore = defineStore('names', () => {
async function fetchExpiredNames({ queryParameters, limit } = {}) {
rawExpiredNames.value = null
const { data } = await axios.get(
`${MIDDLEWARE_URL}${queryParameters || `/v2/names?state=inactive&expand=true&limit=${limit ?? 10}`}`,
`${MIDDLEWARE_URL}${queryParameters || `/v2/names?state=inactive&limit=${limit ?? 10}`}`,
)
rawExpiredNames.value = data
}

async function fetchRecentlyActivatedNames() {
const { data } = await axios.get(`${MIDDLEWARE_URL}/v2/names?state=active&by=activation&direction=backward&limit=4&expand=true&by=activation`)
const { data } = await axios.get(`${MIDDLEWARE_URL}/v2/names?state=active&by=activation&direction=backward&limit=4&by=activation`)
rawRecentlyActivatedNames.value = data.data
}

Expand Down

0 comments on commit 1e848e4

Please sign in to comment.