diff --git a/components/gallery/GalleryItemAction/GalleryItemActionType/GalleryItemBuy.vue b/components/gallery/GalleryItemAction/GalleryItemActionType/GalleryItemBuy.vue index ea15f2a94f..f88b3fe999 100644 --- a/components/gallery/GalleryItemAction/GalleryItemActionType/GalleryItemBuy.vue +++ b/components/gallery/GalleryItemAction/GalleryItemActionType/GalleryItemBuy.vue @@ -157,7 +157,7 @@ const checkBuyBeforeSubmit = async () => { $i18n.t('nft.notification.nftChanged', { chain: urlPrefix.value.toUpperCase(), action: actionLabel, - }) as string, + }), notificationTypes.warn ) return false @@ -169,7 +169,7 @@ const handleBuy = async () => { const { item: itemId } = tokenIdToRoute(props.nftId) showNotification( - $i18n.t('nft.notification.info', { itemId, action: actionLabel }) as string + $i18n.t('nft.notification.info', { itemId, action: actionLabel }) ) if (urlPrefix.value === 'rmrk' && !(await checkBuyBeforeSubmit())) { @@ -184,8 +184,8 @@ const handleBuy = async () => { nftId: $route.params.id, tokenId: $route.params.id, urlPrefix: urlPrefix.value, - successMessage: $i18n.t('mint.successNewNfts') as string, - errorMessage: $i18n.t('transaction.buy.error') as string, + successMessage: $i18n.t('mint.successNewNfts'), + errorMessage: $i18n.t('transaction.buy.error'), }) } catch (error) { dangerMessage(error) diff --git a/vue-shim.d.ts b/vue-shim.d.ts index 70286a869b..5292ed46a6 100644 --- a/vue-shim.d.ts +++ b/vue-shim.d.ts @@ -6,7 +6,7 @@ declare module '*.vue' { import { ApolloClientMethods } from 'vue-apollo/types/vue-apollo' import { BuefyNamespace } from 'buefy' import consola from 'consola' -import { IVueI18n } from 'vue-i18n' +import IVueI18n from 'vue-i18n' declare module '#app' { interface NuxtAppCompat {