diff --git a/backend/moonstreamapi/actions.py b/backend/moonstreamapi/actions.py index f489c81f..4279c147 100644 --- a/backend/moonstreamapi/actions.py +++ b/backend/moonstreamapi/actions.py @@ -40,6 +40,8 @@ logger = logging.getLogger(__name__) blockchain_by_subscription_id = { "ethereum_blockchain": "ethereum", "polygon_blockchain": "polygon", + "ethereum_smartcontract": "ethereum", + "polygon_smartcontract": "polygon", } diff --git a/frontend/src/components/NewDashboard.js b/frontend/src/components/NewDashboard.js index 840fb26c..706c748e 100644 --- a/frontend/src/components/NewDashboard.js +++ b/frontend/src/components/NewDashboard.js @@ -105,7 +105,9 @@ const NewDashboard = (props) => { const filterFn = (item, inputValue) => (item.subscription_type_id === "ethereum_blockchain" || - item.subscription_type_id === "polygon_blockchain") && + item.subscription_type_id === "polygon_blockchain" || + item.subscription_type_id === "polygon_smartcontract" || + item.subscription_type_id === "ethereum_smartcontract") && (!inputValue || item.address.toUpperCase().includes(inputValue.toUpperCase()) || item.label.toUpperCase().includes(inputValue.toUpperCase()));