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: DKG status error message renders #213

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

harsh9539
Copy link
Contributor

Fixes: #157

@harsh9539 harsh9539 changed the title fix: DKG status error message renders #157 fix: DKG status error message renders Sep 29, 2023
@@ -56,7 +56,7 @@ export const RunDKG: React.FC<Props> = ({ next }) => {
setError(`${t('run-dkg.error-config')}`);
break;
default:
setError(`${t('run-dkg.error-default')} '${status}'`);
setError(`${t('run-dkg.error-default')} '${JSON.stringify(status)}'`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the first time contribution @harsh9539! We don't actually want the whole object to be rendered here, it's quite large and contains many irrelevant fields. We just want the status.server.

Suggested change
setError(`${t('run-dkg.error-default')} '${JSON.stringify(status)}'`);
setError(`${t('run-dkg.error-default')} '${status.server}'`);

Copy link
Contributor Author

@harsh9539 harsh9539 Sep 29, 2023

Choose a reason for hiding this comment

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

I changed the file according to your need.

Thankyou.

@wbobeirne wbobeirne merged commit d341e11 into fedimint:master Sep 29, 2023
1 check passed
@harsh9539
Copy link
Contributor Author

Thanku sir soo much

wbobeirne pushed a commit that referenced this pull request Oct 11, 2023
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.

DKG status error message renders [object Object]
2 participants