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: handle falsy value for name #1581

Merged
merged 1 commit into from
Jul 2, 2024
Merged

fix: handle falsy value for name #1581

merged 1 commit into from
Jul 2, 2024

Conversation

keellyp
Copy link
Collaborator

@keellyp keellyp commented Jul 2, 2024

Roadmap Task

ISSUE-366

Context

Name wasn't updated to initial state when it was removed.

Description

If we set name: undefined then it'll not be included in the updated object.
Using ?? instead of || should fix the issue as empty string won't longer be considered as false

@keellyp keellyp self-assigned this Jul 2, 2024
@keellyp keellyp added the 🐞 bug Something isn't working label Jul 2, 2024
@keellyp keellyp merged commit 0da68d4 into main Jul 2, 2024
5 checks passed
@keellyp keellyp deleted the fix-subcription-name branch July 2, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants