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;