-
Couldn't load subscription status.
- Fork 29
Fix spelling of isDeauthorizationReqestActive #658
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments to look at before the merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Unrelated to the file]
Let's also change this typo in those two places:
token-dashboard/src/pages/Staking/AuthorizeStakingApps/AuthorizeApplicationsCardCheckbox/index.tsx
Line 49 in bbdc890
| isDeauthorizationReqestActive: boolean |
and
token-dashboard/src/pages/Staking/AuthorizeStakingApps/AuthorizeApplicationsCardCheckbox/index.tsx
Line 69 in bbdc890
| isDeauthorizationReqestActive?: never |
Without those changes the error appears here:
token-dashboard/src/pages/Staking/AuthorizeStakingApps/index.tsx
Lines 98 to 109 in bbdc890
| tbtc: { | |
| ...tbtcApp, | |
| stakingAppId: "tbtc", | |
| address: tbtcAppAddress, | |
| label: "tBTC", | |
| }, | |
| randomBeacon: { | |
| ...randomBeaconApp, | |
| stakingAppId: "randomBeacon", | |
| address: randomBeaconAddress, | |
| label: "Random Beacon", | |
| }, |
| remainingAuthorizationDecreaseDelay: | ||
| _appData.remainingAuthorizationDecreaseDelay.toString(), | ||
| isDeauthorizationReqestActive: _appData.isDeauthorizationReqestActive, | ||
| isDeauthorizationRequestActive: _appData.isDeauthorizationRequestActive, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The builds are failing because code is not formatted. Please run yarn format:fix to fix that.
If you do that (and just that) in a separate commit, then additionaly add that commit hash to .git-blame-ignore-revs file.
| node_modules/ | ||
| yarn-error.log | ||
|
|
||
| .cosine/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this directory? 🤔
| * In that case we can't estimate when the deauthorization request started. | ||
| */ | ||
| isDeauthorizationReqestActive: boolean | ||
| isDeauthorizationRequestActive: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are at it, let's also fix the similar typo in the comment above:
| * `MAX_UINT64` the deauthorization reqest is pending and an operator have to |
| let isDeauthorizationRequestActive = true | ||
| if (_remainingAuthorizationDecreaseDelay.eq(MAX_UINT64)) { | ||
| // If a `remainingAuthorizationDecreaseDelay` is equal `MAX_UINT64` the | ||
| // deauthorization reqest is pending and an operator have to call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also fix a similar typo in this comment
| // deauthorization reqest is pending and an operator have to call | |
| // deauthorization request is pending and an operator have to call |
isDeauthorizationReqestActive -> isDeauthorizationRequestActive