Skip to content

Commit

Permalink
Release/v1.2.1 (#30)
Browse files Browse the repository at this point in the history
* v1.2.1 hot fixes
  • Loading branch information
marcellobarile authored Aug 14, 2020
1 parent 2306951 commit 26de86a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wci-frontend",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export class ShelterCardItemComponent extends BaseItemWithDynamicMapComponent im

// TODO: This should be done on the BE
get phoneNumbers(): string[] {
const rawPhones = (this.data.phone || this.data.mobile).replace(/\s+/g, '').split(/[^\d/+/-]/gm);
return rawPhones;
if ((!this.data.phone && !this.data.mobile) || (this.data.phone === null && this.data.mobile === null)) {
return [];
}

const rawPhones = (this.data.phone || this.data.mobile).replace(/[\s-\/]+/g, '').split(/[^\d+-/(/)]/gm);
return rawPhones.filter((value: string) => value.length > 3);
}
}
2 changes: 1 addition & 1 deletion frontend/src/app/components/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class MapComponent implements OnInit, OnChanges {
selectedCoordinates: any;

// Default props
minZoom = 6;
minZoom = 8;
maxZoom = 22;
clusterMaxZoom = 17;
clusterRadius = 50;
Expand Down

0 comments on commit 26de86a

Please sign in to comment.