Commit 09c4dc45 authored by Alish's avatar Alish
Browse files

fix: small fix #1022

parent 1a52bbd3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -282,10 +282,12 @@ export class ByLocationPage implements OnInit, OnDestroy {

		let coordinatesObj = await this.getCoordinatesByAddress();

		debugger;
		if (coordinatesObj == null) {
			coordinatesObj = await this.getCoordinates();
		}

		debugger;
		if (coordinatesObj != null) {
			return this.inviteRequestRouter.create({
				geoLocation: {
@@ -360,10 +362,7 @@ export class ByLocationPage implements OnInit, OnDestroy {
				result = true;
			}

			if (!this.country) {
			this.country = +Country[address.country];
				result = true;
			}

			this.detectingLocation = false;

@@ -434,7 +433,7 @@ export class ByLocationPage implements OnInit, OnDestroy {
		const streetAddress = this.streetAddress;
		const city = this.city;
		const countryName = getCountryName(this.country);

		debugger;
		if (!streetAddress || !house || !city || !countryName) {
			return;
		}
@@ -453,6 +452,7 @@ export class ByLocationPage implements OnInit, OnDestroy {
					if (status === google.maps.GeocoderStatus.OK) {
						const place: google.maps.GeocoderResult = results[0];

						debugger;
						const neededAddressTypes = [
							'country',
							'locality',