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

Fuyuki/disable-reset-button #875

Merged
merged 4 commits into from
Nov 13, 2023
Merged

Fuyuki/disable-reset-button #875

merged 4 commits into from
Nov 13, 2023

Conversation

Fuyuki325
Copy link
Collaborator

Fixed Disable Reset Button When Applicable #710

Disabled Reset1

@Fuyuki325 Fuyuki325 self-assigned this Nov 9, 2023
@Fuyuki325 Fuyuki325 linked an issue Nov 9, 2023 that may be closed by this pull request
color="red"
text="reset"
onClick={handleReset}
disabled={data == 0}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do a type check (===)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type check (===) did not work so i did ==.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type check means that the data is not a number, check the type of data and then compare it to that so that the type check works

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== is a jank equal and uses some assumptions, while === is way more strict

@shahdivyank shahdivyank merged commit 7be160b into dev Nov 13, 2023
6 checks passed
@shahdivyank shahdivyank deleted the Fuyuki/Disable-Reset branch November 13, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable Reset Button When Applicable
2 participants