Skip to content

Fix invalid locations alert message#14

Open
jseremba wants to merge 1 commit into
masterfrom
fix/invalidmarkers
Open

Fix invalid locations alert message#14
jseremba wants to merge 1 commit into
masterfrom
fix/invalidmarkers

Conversation

@jseremba
Copy link
Copy Markdown

No description provided.

@jseremba jseremba force-pushed the fix/invalidmarkers branch from 1028652 to 2698e1b Compare June 18, 2018 11:15
Comment thread src/components/Map.ts
props.locations.forEach((location) => {
const locations = props.locations;
const invalidLocations: string[] = [];
if (locations && locations.length) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This can be if (locations.length > 0) { /// }

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread src/components/Map.ts Outdated
const locations = props.locations;
const invalidLocations: string[] = [];
if (locations && locations.length) {
locations.forEach((location) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove the brackets around locations.forEach( location => { //// });

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Do you mean the curly braces ?

Comment thread src/components/Map.ts Outdated
const invalidLocations: string[] = [];
if (locations && locations.length) {
locations.forEach((location) => {
if (!this.validLocation(location) && location.address) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you should start with
if (this.validLocation(location)) { } else if (!this.validLocation(location) && location.address) { } else if (!this.validLocation(location) && !location.address) { }

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@jseremba jseremba force-pushed the fix/invalidmarkers branch from 2698e1b to 6b7dce5 Compare June 20, 2018 06:44
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