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

Fix:Updated the WPM calculation logic #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Alijavedofficial
Copy link

This pull request addresses an issue where the displayed Words Per Minute (WPM) was erroneously showing as 0, failing to reflect the actual typing speed. The problem stemmed from incorrect initialization of startTime and endTime variables and inadequate state updates for WPM calculation.

To resolve this issue, I've implemented crucial updates to the WPM calculation logic. This includes ensuring proper initialization of startTime and endTime variables, correcting the calculation process based on the time taken and word count, and ensuring accurate state updates to reflect the calculated WPM.

With these changes, the WPM display now accurately reflects the user's typing speed

Before Changes:Before
After Changes:After

Updated the WPM calculation logic to ensure accurate calculation based on the time taken and word count. Fixed issues with startTime and endTime initialization and ensured proper state updates for calculating WPM.
Copy link

vercel bot commented May 15, 2024

@Alijavedofficial is attempting to deploy a commit to the mirayatech's projects Team on Vercel.

A member of the Team first needs to authorize it.

@chris176327
Copy link

I also saw this issue while I was checking Miraya's projects.Now after your changes, it solves the issue and WPM is coming up correctly

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.

None yet

2 participants