Open ChristiaanScheermeijer opened 3 months ago
@AntonLantukh @dbudzins
I think this is caused due to the type casting in the ApiService:
Do we want to verify the data using yup instead of assuming the type? 🤔
@ChristiaanScheermeijer I would just modify the AdSchedule type not including yup
in checks. yup
looks like a good choice for some complex checks we have for AppConfig , but here I would just rely on the api docs (something we need to update):
In the
Player.tsx
, anadsData
prop uses theAdSchedule
type. This type is defined as follows:However, the data seems to differ from the type above: