From 7814901c64dea7d902c0576f32eb065db1948e16 Mon Sep 17 00:00:00 2001 From: Acellam Guy Date: Thu, 28 Dec 2017 13:42:30 +0300 Subject: [PATCH] notify call back of load failure (#479) When the google fails to load due to no internet, the call back should be notified so that appropriate UI can be shown --- src/google_map.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google_map.js b/src/google_map.js index 2dba5df..b00451e 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -760,6 +760,8 @@ export default class GoogleMap extends Component { }); }) .catch(e => { + // notify callback of load failure + this._onGoogleApiLoaded({ map: null, maps: null }); console.error(e); // eslint-disable-line no-console throw e; });