fix: Manage pools formatting error #2363
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Dashboard when open pools and clic to Manage, this error occurs:
hook.js:608 TypeError: ((intermediate value)(intermediate value)(intermediate value) || "100%").slice is not a function at vpt (index-DX-H3mSL.js:7177:1080) at S0 (index-DX-H3mSL.js:2427:17990) at vS (index-DX-H3mSL.js:2429:45437) at pS (index-DX-H3mSL.js:2429:41047) at jk (index-DX-H3mSL.js:2429:40975) at wy (index-DX-H3mSL.js:2429:40826) at o3 (index-DX-H3mSL.js:2429:37070) at fS (index-DX-H3mSL.js:2429:37880) at Xd (index-DX-H3mSL.js:2427:3290) at index-DX-H3mSL.js:2429:35370
And appear a modal with this message:
Oops, Something Went Wrong Click to reload
For prevent this error, I fix the line 41 in
polkadot-staking-dashboard/packages/app/src/overlay/modals/ManagePool/Forms/ManageCommission/provider/index.tsx
Please hurry up and accept the Merge request, because I have put my pool in Destroying state, and if this error is not fixed, the rest of the members will not be able to leave the pool.
Regards,