Skip to content

Commit 971c972

Browse files
committed
update getAssignedCardSortKey method description
1 parent c4965f7 commit 971c972

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/libs/CardUtils.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ function getMonthFromExpirationDateString(expirationDateString: string) {
3737
}
3838

3939
/**
40-
* Ensure to sort physical Expensify cards first, no matter what their cardIDs are. This way ensures the Expensify Combo Card detail is rendered correctly, because we will always use the cardID of the physical card from the combo card duo.
41-
* @param card
40+
* Sorting logic for assigned cards.
41+
*
42+
* Ensure to sort physical Expensify cards first, no matter what their cardIDs are.
43+
* This way ensures the Expensify Combo Card detail is rendered correctly,
44+
* because we will always use the cardID of the physical card from the combo card duo.
45+
*
46+
* @param card - card to get the sort key for
4247
* @returns number
4348
*/
4449
function getAssignedCardSortKey(card: Card): number {

0 commit comments

Comments
 (0)