diff --git a/common/types/event.ts b/common/types/event.ts index edf55283..daadf38c 100644 --- a/common/types/event.ts +++ b/common/types/event.ts @@ -1,7 +1,7 @@ import type { Timezone } from './location'; import { EventTypes } from '../const/eventTypes'; import { type Tag, Tags } from '../const/tags'; -import { CurrencyType } from '../const/price'; +import type { CurrencyType } from '../const/price'; export type Time = { hours: number | string; minutes: number | string; seconds?: number | string }; diff --git a/frontend/utils/events.ts b/frontend/utils/events.ts index 0bac1988..80a1f014 100644 --- a/frontend/utils/events.ts +++ b/frontend/utils/events.ts @@ -31,10 +31,10 @@ export const getInitialEventFormValues = (data?: EventOnPoster): EventFormType = image: (data && data.image) || '', price: (data && { val: data.price && data.price.value !== 0 ? data.price.value : null, - currency: data.price && data.price.currency !== null ? data.price.currency : '' + currency: data.price && data.price.currency !== null ? data.price.currency : null }) || { val: null, - currency: '' + currency: null }, // ставим по умолчанию CET таймзону, тк это tz Ценральной Европы (utc +1 // utc +2 от вр. года) timezone: