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: [lw-7632] fix rename nft folder feat #1709

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

vetalcore
Copy link
Contributor

@vetalcore vetalcore commented Feb 12, 2025

Checklist

  • JIRA - LW-7632
  • Proper tests implemented
  • Screenshots added.

Proposed solution

Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.

Testing

Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met

Screenshots

Attach screenshots here if implementation involves some UI changes

@vetalcore vetalcore self-assigned this Feb 12, 2025
@vetalcore vetalcore requested a review from a team as a code owner February 12, 2025 22:16
Copy link
Contributor

@przemyslaw-wlodek przemyslaw-wlodek left a comment

Choose a reason for hiding this comment

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

Left 1 question but still approved (if this useEffect is necessary). Please update the PR description :)

Comment on lines +55 to +57
useEffect(() => {
setName(folderToRename?.name || '');
}, [folderToRename?.name]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it change in the meantime? Isn't useState(folderToRename?.name || '') enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this is exactly what is happening, drawer is rendered with visibility set to false, but useState(folderToRename?.name || '') is still called

@vetalcore vetalcore force-pushed the fix/lw-7632-fix-rename-nft-folder branch from 30c73d1 to fcbfb72 Compare February 13, 2025 08:50
@vetalcore vetalcore merged commit f483bcd into main Feb 13, 2025
30 checks passed
@vetalcore vetalcore deleted the fix/lw-7632-fix-rename-nft-folder branch February 13, 2025 09:36
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