diff --git a/package.json b/package.json index 3f6cd02..3fc156c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "climate-tokenization-engine", - "version": "1.3.13", + "version": "1.3.14", "bin": "./src/server.js", "description": "", "main": "proxy.js", diff --git a/src/api/retirement-explorer.js b/src/api/retirement-explorer.js index ccccb5e..8a611db 100644 --- a/src/api/retirement-explorer.js +++ b/src/api/retirement-explorer.js @@ -49,7 +49,13 @@ const getRetirementActivities = async (page, limit, minHeight) => { ); } - return response.body?.activities || []; + const activities = response.body?.activities || []; + + const retirements = activities?.filter( + (activity) => activity.mode === "PERMISSIONLESS_RETIREMENT" + ); + + return retirements; } catch (error) { logger.error("Cannot get retirement activities", error);