fix sort order of items on contact given-amounts page

This commit is contained in:
2023-03-25 19:53:18 -06:00
parent 25b9dce669
commit eadcc22e9a
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
- 01 Change alerts into a component (to cut down duplicate code) - 01 Change alerts into a component (to cut down duplicate code)
- 01 Code for "nav" tabs across the bottom is duplicated on each page. - 01 Code for "nav" tabs across the bottom is duplicated on each page.
- .2 Add "copied" feedback when they click "copy" on /account - .2 Add "copied" feedback when they click "copy" on /account
- .5 Fix how icons show on top of bottom bar on ContactAmounts page
- commit screen - commit screen

View File

@@ -203,7 +203,8 @@ export default class ContactsView extends Vue {
} }
const sortedResult: Array<GiveServerRecord> = R.sort( const sortedResult: Array<GiveServerRecord> = R.sort(
(a, b) => new Date(a).getTime() - new Date(b).getTime(), (a, b) =>
new Date(b.issuedAt).getTime() - new Date(a.issuedAt).getTime(),
result result
); );
this.giveRecords = sortedResult; this.giveRecords = sortedResult;