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

feat: add isEligibleForRewards logic, some fixes around loading states #547

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

Tanya-atatakai
Copy link
Collaborator

Proposed changes

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@@ -239,8 +238,8 @@ export const ServicesProvider = ({ children }: PropsWithChildren) => {
services,
serviceWallets,
isError,
isFetched: isServicesFetched,
isLoading,
isFetched: !isServicesLoading,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we need to change isFetched to isLoading, there are still places where the buttons stuck in infinite loading b/c service is not created and isFetched is always false due to the query having enabled=false

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice 👏

@@ -239,8 +238,8 @@ export const ServicesProvider = ({ children }: PropsWithChildren) => {
services,
serviceWallets,
isError,
isFetched: isServicesFetched,
isLoading,
isFetched: !isServicesLoading,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice 👏

@Tanya-atatakai Tanya-atatakai merged commit 778d9a3 into feature/agent-memeooorr Dec 6, 2024
5 checks passed
@Tanya-atatakai Tanya-atatakai deleted the tanya/activity branch December 6, 2024 13:12
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.

3 participants