You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add logic to determine whether the event date has passed. This can be done by comparing the event date with the current date.
Depending on whether the event has completed or not, we need to update the state of the button accordingly. If the event has completed, the button should be disabled and labeled as Event Completed. Otherwise, it should remain enabled with the label View Event.
We'll make the necessary changes to the EventCard.svelte component to incorporate the logic.
👍 Expected behavior
The button should be disabled and labeled Event Completed if the event date has passed.
👎 Actual Behavior
Currently, in the event card component, the button intended to be disabled and labeled Event Completed if the event date has passed is not functioning as expected. Despite the event date being hardcoded and already passed, the button still displays View Event and remains enabled.
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
👀 Have you spent some time to check if this issue has been raised before?
👟 Reproduction steps
Event Completed
. Otherwise, it should remain enabled with the labelView Event
.EventCard.svelte
component to incorporate the logic.👍 Expected behavior
The button should be disabled and labeled Event Completed if the event date has passed.
👎 Actual Behavior
Currently, in the event card component, the button intended to be disabled and labeled Event Completed if the event date has passed is not functioning as expected. Despite the event date being hardcoded and already passed, the button still displays View Event and remains enabled.
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: