From bfb4288ecbab774525c0669c419c32cee436bb52 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Wed, 22 Apr 2020 15:22:16 +0200
Subject: [PATCH] [fix] Fix JS error on findIndex - Android 4.4 (API 19) - fix
 #912

---
 www/js/services/tx-services.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/js/services/tx-services.js b/www/js/services/tx-services.js
index 5f9388396..7c54a7cb1 100644
--- a/www/js/services/tx-services.js
+++ b/www/js/services/tx-services.js
@@ -229,7 +229,7 @@ angular.module('cesium.tx.services', ['ngApi', 'cesium.bma.services',
           tx.history.sort(function(tx1, tx2) {
             return (tx2.time - tx1.time);
           });
-          var firstValidatedTxIndex = tx.history.findIndex(function(tx){
+          var firstValidatedTxIndex = _.findIndex(tx.history, function(tx){
             return (tx.block_number <= current.number - csSettings.data.blockValidityWindow);
           });
           // remove validating from history
-- 
GitLab