From b3ce4343257c1222b37201420450f338985456e0 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 25 Sep 2023 03:13:12 +0530 Subject: [PATCH] Update index.html --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index fc60d16..73d3ed2 100644 --- a/index.html +++ b/index.html @@ -2853,10 +2853,11 @@ function filterSmartContracts(options) { const { type, subType, dynamic = false } = options || {}; + console.log(options) let filteredSmartContracts = floGlobals.smartContracts || []; if (type) { filteredSmartContracts = filteredSmartContracts.filter(sc => { - if (subType === 'external-trigger') { + if (subType && subType === 'external-trigger') { return sc.status === 'expired'; // only inactive contracts can be triggered externally } else if (type === 'continuos-event' && dynamic) { return sc.status === 'active' && sc.contractType === type && sc.oracle_address;