Merge pull request #509 from sharetribe/fix-bounds-check

Fix bounds check
This commit is contained in:
Vesa Luusua 2017-10-19 16:24:58 +03:00 committed by GitHub
commit 2399bce9ef

View file

@ -146,7 +146,7 @@ export const sdkBoundsToFixedCoordinates = (sdkBounds, fixedPrecision) => {
* @return {boolean} - true if bounds are the same
*/
export const hasSameSDKBounds = (sdkBounds1, sdkBounds2) => {
if (!(sdkBounds1 instanceof SDKLatLngBounds) && !(sdkBounds2 instanceof SDKLatLngBounds)) {
if (!(sdkBounds1 instanceof SDKLatLngBounds) || !(sdkBounds2 instanceof SDKLatLngBounds)) {
return false;
}
return (