Skip to content

fix: show asset suggestions on empty Add Asset query [PERA-4159]#391

Merged
wjbeau merged 2 commits intomainfrom
wjbeau/PERA-4159
Apr 28, 2026
Merged

fix: show asset suggestions on empty Add Asset query [PERA-4159]#391
wjbeau merged 2 commits intomainfrom
wjbeau/PERA-4159

Conversation

@wjbeau
Copy link
Copy Markdown
Contributor

@wjbeau wjbeau commented Apr 27, 2026

Pull Request Template

Description

Show a default list of assets if the user doesn't type in a query in the Add Assets bottom sheet

Related Issues

Closes https://algorandfoundation.atlassian.net/browse/PERA-4159

Checklist

  • Have you tested your changes locally?
  • Have you reviewed the code for any potential issues?
  • Have you documented any necessary changes in the project's documentation?
  • Have you added any necessary tests for your changes?
  • Have you updated any relevant dependencies?

Additional Notes

  • Add any additional notes or comments that may be helpful for reviewers.

...EMPTY_GLOBAL_SEARCH_RESULTS,
remoteAssets: remoteAssetQuery.results ?? [],
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
}
if (!hasQuery && !shouldRunRemoteAssets) return EMPTY_GLOBAL_SEARCH_RESULTS
return {
...EMPTY_GLOBAL_SEARCH_RESULTS,
remoteAssets: remoteAssetQuery.results ?? [],
}

@wjbeau wjbeau merged commit 95ad4ef into main Apr 28, 2026
8 checks passed
@wjbeau wjbeau deleted the wjbeau/PERA-4159 branch April 28, 2026 11:27
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.

2 participants