hi-manshu/Kalendar

Events dots visible for all dates.

gsrathoreniks opened this issue · 2 comments

Describe the bug
Even if the event is set for a specific date, it's showing events on all the dates throughout the calendar,

To Reproduce
Steps to reproduce the behavior:

  1. Add events
  2. See the preview in device

I think it's KalendarDay.kt's problem, maybe can check the LocalTime and kalendarEvents before placing the dot?

like:

if (kalendarEvents.isNotEmpty()) {
    kalendarEvents.forEachIndexed { index, event ->
        if(event.date == kalendarDay.localDate) {
            KalendarDots(
                modifier = Modifier,
                index = index,
                size = size,
                color = dotColor
                )
            }
        }
    }

This will be fixed in today's release