From f4390caf1d2408c1808cfd769fb68b01dc238121 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Mon, 1 Apr 2019 15:26:02 +0200
Subject: [PATCH] [fix] JS Hint

---
 www/js/controllers/wot-controllers.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/js/controllers/wot-controllers.js b/www/js/controllers/wot-controllers.js
index 4dc3b75d0..6856f87dd 100644
--- a/www/js/controllers/wot-controllers.js
+++ b/www/js/controllers/wot-controllers.js
@@ -731,9 +731,9 @@ function WotIdentityAbstractController($scope, $rootScope, $state, $translate, $
       $scope.loading = true;
       UIUtils.loading.show();
     }
-    var options = {cache: false}; // No cache
-    if ($scope.formData.blockUid) {
-      options.blockUid = $scope.formData.blockUid;
+    var options = {
+      cache: false, // No cache
+      blockUid: $scope.formData.blockUid || undefined
     };
     return $scope.load($scope.formData.pubkey, $scope.formData.uid, options)
       .then(UIUtils.loading.hide);
-- 
GitLab