Skip to content

Conversation

@arghaDEVIL
Copy link

@arghaDEVIL arghaDEVIL commented Jan 15, 2024

fixed the code so that the timer is set to zero once the event has ended

here, the updateTimer method is responsible for calculating the time difference between the current date and the event date and updating the days, hours, mins, and secs data properties. The component is mounted, and the timer is updated every second using setInterval. If the event has already ended, the countdown values are set to zero.

Please verify @sambhavgupta0705

fixed the code so that the timer is set to zero once the event has ended
@arghaDEVIL arghaDEVIL changed the title Update Home.vue Negative timer after event ends Jan 15, 2024
@arghaDEVIL arghaDEVIL changed the title Negative timer after event ends Update Home.vue Jan 15, 2024
@aryan1113 aryan1113 mentioned this pull request Jan 15, 2024
@arghaDEVIL arghaDEVIL closed this Jan 15, 2024
@arghaDEVIL arghaDEVIL deleted the patch-2 branch January 15, 2024 14:39
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

Successfully merging this pull request may close these issues.

1 participant