Skip to content

Commit

Permalink
type check2 erroes fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinamon-maker authored and igor.la committed Aug 19, 2024
1 parent 7a3e6c4 commit b867e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/types/event.ts
Original file line number Diff line number Diff line change
@@ -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 };

Expand Down
4 changes: 2 additions & 2 deletions frontend/utils/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b867e5c

Please sign in to comment.