diff --git a/lib/components/map/route-viewer-overlay.js b/lib/components/map/route-viewer-overlay.js
index <HASH>..<HASH> 100644
--- a/lib/components/map/route-viewer-overlay.js
+++ b/lib/components/map/route-viewer-overlay.js
@@ -4,6 +4,16 @@ import { FeatureGroup, MapLayer, Polyline } from 'react-leaflet'
 
 import polyline from '@mapbox/polyline'
 
+// helper fn to check if geometry has been populated for all patterns in route
+const isGeomComplete = routeData => {
+  return (
+    routeData &&
+    routeData.patterns &&
+    Object.values(routeData.patterns)
+      .every(ptn => typeof ptn.geometry !== 'undefined')
+  )
+}
+
 class RouteViewerOverlay extends MapLayer {
   static propTypes = {}
 
@@ -13,18 +23,6 @@ class RouteViewerOverlay extends MapLayer {
   componentWillUnmount () {}
 
   componentWillReceiveProps (nextProps) {
-    // helper fn to check if geometry has been populated for all patterns in route
-    const isGeomComplete = routeData => {
-      return (
-        routeData &&
-        routeData.patterns &&
-        Object.values(routeData.patterns).reduce(
-          (acc, ptn) => acc && typeof ptn.geometry !== 'undefined',
-          true
-        )
-      )
-    }
-
     // if pattern geometry just finished populating, update the map points
     if (
       !isGeomComplete(this.props.routeData) &&
refactor(route-viewer-overlay): use Array.every for geom complete check