From 5fe993b30d1f1fc0e37c7303f671a09f7b26148b Mon Sep 17 00:00:00 2001
From: Fatih Acet <acetfatih@gmail.com>
Date: Thu, 15 Sep 2016 00:03:42 +0300
Subject: [PATCH] Implement Cycle Analytics frontend.

---
 app/assets/javascripts/cycle-analytics.js.es6 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/app/assets/javascripts/cycle-analytics.js.es6 b/app/assets/javascripts/cycle-analytics.js.es6
index 1bcd516c18..727ae12b4f 100644
--- a/app/assets/javascripts/cycle-analytics.js.es6
+++ b/app/assets/javascripts/cycle-analytics.js.es6
@@ -58,13 +58,12 @@
       $dropdown.find('li a').on('click', (e) => {
         e.preventDefault();
         const $target = $(e.currentTarget);
-        $label.text($target.text().trim());
-        value = $target.data('value');
+        const value = $target.data('value');
 
+        $label.text($target.text().trim());
         this.vue.isLoading = true;
       })
     }
-
   }
 
 })(window.gl || (window.gl = {}));
-- 
2.30.9