From 901af1a86a893d5f042dbc97129db380fd93e0df Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <yohann.danello@gmail.com>
Date: Sun, 9 Aug 2020 14:01:59 +0200
Subject: [PATCH] Use var instead of let to declare a global var
 (turbolinks...)

---
 static/js/consos.js   | 2 +-
 static/js/transfer.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/static/js/consos.js b/static/js/consos.js
index 32dd44a9..8b8e612c 100644
--- a/static/js/consos.js
+++ b/static/js/consos.js
@@ -2,7 +2,7 @@
 // SPDX-License-Identifier: GPL-3.0-or-later
 
 // When a transaction is performed, lock the interface to prevent spam clicks.
-let LOCK = false;
+var LOCK = false;
 
 /**
  * Refresh the history table on the consumptions page.
diff --git a/static/js/transfer.js b/static/js/transfer.js
index 8df25c42..5e49aa4f 100644
--- a/static/js/transfer.js
+++ b/static/js/transfer.js
@@ -1,4 +1,4 @@
-let LOCK = true;
+var LOCK = false;
 
 sources = [];
 sources_notes_display = [];
-- 
GitLab