Skip to content

Commit

Permalink
fix: move api folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Nov 7, 2023
1 parent aa20c5b commit 1ceaaee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/forms/Newsletter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { defineComponent, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useForm } from '@inkline/inkline';
import { subscribe } from '~/api';
import { subscribe } from '~/utils/api';
import { useErrorHandler } from '~/composables';
export default defineComponent({
Expand Down Expand Up @@ -38,8 +38,8 @@ export default defineComponent({
try {
await subscribe(form.value.email.value, form.value.firstName.value);
status.value = 'success';
} catch (error: Error) {
showError(error);
} catch (error) {
showError(error as Error);
status.value = 'error';
} finally {
loading.value = false;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1ceaaee

Please sign in to comment.