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

10 notify signing error #11

Merged
merged 2 commits into from
Nov 3, 2022
Merged

10 notify signing error #11

merged 2 commits into from
Nov 3, 2022

Conversation

turadg
Copy link
Member

@turadg turadg commented Nov 3, 2022

fixes: #10

@turadg turadg requested review from dckc and samsiegart November 3, 2022 22:44
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 688934f
Status: ✅  Deploy successful!
Preview URL: https://676a30b4.dapp-econ-gov.pages.dev
Branch Preview URL: https://10-notify-signing-error.dapp-econ-gov.pages.dev

View logs

Copy link
Contributor

@samsiegart samsiegart left a comment

Choose a reason for hiding this comment

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

One question/suggestion but better than nothing for now so LGTM

@@ -69,7 +69,7 @@ const App = (_props: Props) => {
setMetricsIndex,
setGovernedParamsIndex,
setInstanceIds,
});
}).catch((err: Error) => console.error('got watchContract err', err));
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth alerting here too? (Maybe if/when we get time we can add a toast instead of alert)

Copy link
Member Author

Choose a reason for hiding this comment

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

I figured if this part fails there's not anything they can do. for the signing error they can get more funds.

@turadg turadg merged commit 8e3880b into main Nov 3, 2022
@turadg turadg deleted the 10-notify-signing-error branch November 3, 2022 22:53
@@ -8,6 +8,11 @@ import { IST_ICON } from 'assets/assets';
import type { BrandInfo } from 'store/app';
import { wellKnownBrands } from 'config';

export const notifyError = err => {
console.log(err);
window.alert(err);
Copy link
Member

Choose a reason for hiding this comment

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

Not alert(err.message)?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would omit "Error: ".
Screen Shot 2022-11-04 at 7 36 09 AM

Copy link
Member

Choose a reason for hiding this comment

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

ok. I was worried about [Object object] or some such. thanks for the detail.

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.

silent failure to vote or pose question on insufficient funds
3 participants