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

[#239 #240 #338] DRep can become Sole Voter, Sole Voter can become DRep #342

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

JanJaroszczak
Copy link
Contributor

@JanJaroszczak JanJaroszczak commented Feb 28, 2024

List of changes

Checklist

related issues: #239 #240 #338

  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

const hashSubmitValue = hash ?? "";
// Temporary solution. To modify later.
const urlSubmitValue =
!url || url === ""
Copy link
Contributor

Choose a reason for hiding this comment

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

!undefined === true, !null === true, !"" === true, !'' === true
Conclusion: OR operator here makes no sense in my opinion

@@ -5,12 +5,13 @@ import { useCardano } from "@context";
import { getDRepInfo } from "@services";

export const useGetDRepInfo = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

then change this on useGetVoterInfo connected with voter data

@@ -112,7 +112,7 @@ export const en = {
registrationInProgress:
"The registration process is ongoing. This may take several minutes.",
retire: "Retire",
retireTitle: "You Have Retired as a Sole Voter",
wasSoleVoterTitle: "You Have Retired as a Sole Voter",
Copy link
Contributor

Choose a reason for hiding this comment

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

sort

Copy link
Contributor

@MSzalowski MSzalowski left a comment

Choose a reason for hiding this comment

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

LGTM 💪

@JanJaroszczak JanJaroszczak merged commit d2cd92f into develop Feb 28, 2024
1 check passed
@JanJaroszczak JanJaroszczak deleted the 240-sole-voter-can-become-a-drep branch February 28, 2024 14:57
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.

3 participants