diff --git a/components/bsx/Offer/OfferTable.vue b/components/bsx/Offer/OfferTable.vue index abcd5019a2..cc3fd42f79 100644 --- a/components/bsx/Offer/OfferTable.vue +++ b/components/bsx/Offer/OfferTable.vue @@ -177,6 +177,7 @@ withDefaults( const { $route } = useNuxtApp() const { urlPrefix, tokenId } = usePrefix() const { accountId } = useAuth() +const { replaceUrl } = useReplaceUrl() const itemsPerPage = ref(20) const currentPage = ref(parseInt($route.query?.page as string) || 1) @@ -188,21 +189,9 @@ const tellFrens = (caller: string, withdraw: boolean) => { } watch(currentPage, (val) => { - replaceUrl(String(val)) + replaceUrl({ page: String(val) }) }) -const replaceUrl = (value: string, key = 'page') => { - const { $route, $router, $consola } = useNuxtApp() - if ($route.query[key] !== value) { - $router - .replace({ - path: String($route.path), - query: { ...$route.query, [key]: value }, - }) - .catch($consola.warn /*Navigation Duplicate err fix later */) - } -} - const currentBlock = ref(async () => { const { apiInstance } = useApi() const api = await apiInstance.value diff --git a/components/rmrk/Gallery/EmotionList.vue b/components/rmrk/Gallery/EmotionList.vue index e418a50f4d..46bdfda4a9 100644 --- a/components/rmrk/Gallery/EmotionList.vue +++ b/components/rmrk/Gallery/EmotionList.vue @@ -3,7 +3,7 @@ @@ -28,77 +28,60 @@ -