Skip to content

Commit

Permalink
Merge pull request #83 from RealToken-Community/fix-start-date-filtering
Browse files Browse the repository at this point in the history
fix: start date filtering issue caused by RWA token
  • Loading branch information
AlexRLT authored Sep 1, 2024
2 parents fd211a5 + 72c4d1d commit 183bbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/assetsView/filters/AssetsViewSort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function useAssetsViewSort(filter: AssetsViewSortFilter) {
case AssetSortType.RENT:
return B.amount * B.netRentDayPerToken - A.amount * A.netRentDayPerToken
case AssetSortType.RENT_START:
return B.rentStartDate.date.localeCompare(A.rentStartDate.date)
return B.rentStartDate?.date.localeCompare(A.rentStartDate?.date)
case AssetSortType.NAME:
return A.shortName.localeCompare(b.shortName)
case AssetSortType.SUPPLY:
Expand Down

0 comments on commit 183bbcd

Please sign in to comment.