diff --git a/CHANGELOG.md b/CHANGELOG.md index a5e7a65c69..ad28005494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed the wrapping of the name column in the accounts table component on mobile +- Fixed the sorting of the watchlist for asset profiles without a name ## 3.73.0 - 2026-09-26 diff --git a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts index ccdd04e27c..c69a31df82 100644 --- a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts +++ b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts @@ -151,7 +151,7 @@ export class WatchlistService { ); return watchlist.sort((a, b) => { - return a.name.localeCompare(b.name); + return (a.name ?? '').localeCompare(b.name ?? ''); }); }