Skip to content

Commit

Permalink
🚀 🐛 remove emptyInputs to see if deploy resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfiSlask committed Jun 19, 2024
1 parent c08e70f commit 10ddfa1
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/stores/webshopStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ref, computed, watch } from 'vue';
import type { IMovieProduct, ICategory, IPaymentMethods, IModals, IInputs, IOrder } from '@/utils/types/types';
import { CartProduct } from '@/models/CartProduct';
import { textOnlyRegx } from '@/utils/regEx/regEx';
import { emptyInputs } from '@/models/formInputs';
import lodash from 'lodash';
import axios from 'axios';

Expand All @@ -22,7 +21,15 @@ export const useWebshopStore = defineStore('webshop', () => {
const searchResults = ref<number[]>([]);
const paymentMethods = ref<IPaymentMethods>({ invoice: true, paypal: false });
const modalStates = ref<IModals>({ login: false, create: false, cart: false });
const inputs = ref<IInputs>(emptyInputs);
const inputs = ref<IInputs>({
name: '',
email: '',
phone: '',
address: '',
city: '',
zip: '',
country: '',
});
const checkutFormError = ref<boolean>(false);
const adminOrders = ref<IOrder[]>([]);
const companyId = ref<number>(56789);
Expand Down Expand Up @@ -203,7 +210,15 @@ export const useWebshopStore = defineStore('webshop', () => {
};

const resetCheckoutForm = () => {
inputs.value = emptyInputs;
inputs.value = {
name: '',
email: '',
phone: '',
address: '',
city: '',
zip: '',
country: '',
};
paymentMethods.value = { invoice: true, paypal: false };
};

Expand Down

0 comments on commit 10ddfa1

Please sign in to comment.