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

Don't calculate in constructor #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Don't calculate in constructor #208

wants to merge 1 commit into from

Conversation

grod220
Copy link
Contributor

@grod220 grod220 commented Dec 12, 2024

Currently the cause of an error toast on load:

Screenshot 2024-12-12 at 9 48 17 PM

@grod220 grod220 added the bug Something isn't working label Dec 12, 2024
@@ -57,7 +57,6 @@ class OrderFormStore {
makeAutoObservable(this);

void this.calculateGasFee();
void this.calculateExchangeRate();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JasonMHasperhoven can you validate this is ok? On load, there is no assetIds set so it is throwing. Upon the assetIds loading in the store, it re-renders and runs the calculations later anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant