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

Bug/changed rendering condition to get "no transactions" message only when needed #2324

Merged
merged 5 commits into from
Apr 25, 2023

Conversation

mviswanathsai
Copy link
Contributor

@mviswanathsai mviswanathsai commented Apr 8, 2023

Describe the changes you have made in this PR

The message "no transactions on snort yet" was shown while loading was also happening. I have changed the conditional rendering condition to prevent this.

Link this PR to an issue [optional]

Fixes #2219

Type of change

  • fix: Bug fix (non-breaking change which fixes an issue)

How has this been tested?

I tested with different boolean values manually for different scenarios to make sure that the conditional render for the message will only happen when the favored condition happens. Had to do this since I could not access snort on testnet to make any transactions.

Checklist

  • [ x] My code follows the style guidelines of this project and performed a self-review of my own code
  • [ x] New and existing tests pass locally with my changes
  • I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

@socket-security
Copy link

socket-security bot commented Apr 8, 2023

No dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No dependency changes detected in pull request

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

@github-actions
Copy link

github-actions bot commented Apr 8, 2023

🚀 Thanks for the pull request!

Here are the current build files for testing:

Download and unzip the file for your browser. Refer to the readme for detailed install instructions.


This build is brought to you by: channel.ninja (who recently dropped 1000 sats):


Want to sponsor the next build? send some sats to ⚡️builds@getalby.com (don't forget to provide your name)

Don't forget: keep earning sats!

@mviswanathsai mviswanathsai changed the title Bug/viswa patch Bug/changed rendering condition to get "no transactions" message only when needed Apr 10, 2023
@reneaaron reneaaron requested a review from im-adithya April 24, 2023 12:50
@im-adithya
Copy link
Member

Thank you for your pull request @mviswanathsai!

It should be

!isLoadingTransactions && !transactions?.length

instead of

!hasTransactions && !transactions?.length

because hasTransactions itself is !isLoadingTransactions && !!transactions?.length

@im-adithya im-adithya merged commit 0014898 into getAlby:master Apr 25, 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.

[BUG] Shouldn't show the message (No transactions yet on Snort)
2 participants