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

Address name containing empty string causes a crash #286

Open
alexsegura opened this issue Nov 7, 2019 · 1 comment
Open

Address name containing empty string causes a crash #286

alexsegura opened this issue Nov 7, 2019 · 1 comment
Labels

Comments

@alexsegura
Copy link
Member

alexsegura commented Nov 7, 2019

When a task address name contains en empty string (''), the app crashes.

The problem is located here:

{ name && <Text style={ textStyle }>{ name }</Text> }
{ task.address.name && <Text style={ textStyle }>{ task.address.name }</Text> }

For more details see:

To avoid this kind of problems, we should enforce conditional renders syntax with ESLint

@alexsegura
Copy link
Member Author

Currently it's not possible to enforce this through ESLint jsx-eslint/eslint-plugin-react#1979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant