From 91d4ac040e8ea15247f4f957eec8d324d619571e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz?= Date: Mon, 15 Mar 2021 12:19:52 +0100 Subject: [PATCH] chore: update --- .../core/nuxt-theme-module/theme/assets/notifications/cart.ts | 2 +- .../core/nuxt-theme-module/theme/assets/notifications/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/nuxt-theme-module/theme/assets/notifications/cart.ts b/packages/core/nuxt-theme-module/theme/assets/notifications/cart.ts index c2b78ba6e5..5459aed958 100644 --- a/packages/core/nuxt-theme-module/theme/assets/notifications/cart.ts +++ b/packages/core/nuxt-theme-module/theme/assets/notifications/cart.ts @@ -1,6 +1,6 @@ import { useUiNotification } from '../../composables'; -export const cart = (i18n, router) => { +export const cart = ({ i18n, router }) => { const addItem = ({ productName, error }) => { const { send } = useUiNotification(); diff --git a/packages/core/nuxt-theme-module/theme/assets/notifications/index.ts b/packages/core/nuxt-theme-module/theme/assets/notifications/index.ts index 0b216ed373..05651b841f 100644 --- a/packages/core/nuxt-theme-module/theme/assets/notifications/index.ts +++ b/packages/core/nuxt-theme-module/theme/assets/notifications/index.ts @@ -6,7 +6,7 @@ const sendNotification = () => { const { i18n, router } = app; return { - cart: cart(i18n, router) + cart: cart({ i18n, router }) }; };