Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping out fastings on a calendar. #16

Open
Kidyoh opened this issue Nov 2, 2023 · 1 comment
Open

Mapping out fastings on a calendar. #16

Kidyoh opened this issue Nov 2, 2023 · 1 comment

Comments

@Kidyoh
Copy link

Kidyoh commented Nov 2, 2023

  {allFastings.map((fasting, index) => {

if (fasting.day.month === ethiopianMonths[ethiopianCalendar.month - 1]) {
return (
<div key={index} style={{ border: '1px solid black', padding: '10px' }}>
{fasting.day.month} {fasting.day.date}: {fasting.beal}

);
}
})}

the error is property month and date doesn't exist on type 'object'. for the day, i tried custom types but that isnt working as well.

@Nabute
Copy link
Owner

Nabute commented Nov 14, 2023

Can you please provide more information about your code, specially variable initializations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants