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

fix: APP-3195 - An empty link is unnecessarily added to Proposal "resources" #1373

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

Barukimang
Copy link
Collaborator

@Barukimang Barukimang commented Jun 21, 2024

Description

Found that issue was introduced with new createProposalUtil which would add an object to the resources array even when no link added. This prevented showing empty state since links.length > 0

Proposals before the new util did not have the issue, see here e.g.: proposal link

For these proposals no links object was added to the array. So for the new createProposalUtil added truthy logic preventing an object added to the array when no link present. Compare before and after in the images below:

Before (proposal link)
image

After (proposal link)
image

Task: APP-3195

Type of change

  • Bug fix (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)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I have tested my code on the test network.

Copy link
Member

@cgero-eth cgero-eth left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @Barukimang!

@cgero-eth cgero-eth merged commit 0709635 into develop Jun 24, 2024
2 checks passed
@cgero-eth cgero-eth deleted the fix/app-3195-resources-link branch June 24, 2024 14:34
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