We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2754636 commit 383c557Copy full SHA for 383c557
1 file changed
src/libs/CardUtils.ts
@@ -38,7 +38,7 @@ function getMonthFromExpirationDateString(expirationDateString: string) {
38
39
/**
40
* @param card
41
- * @returns boolean
+ * @returns number
42
*/
43
function getAssignedCardSortKey(card: Card): number {
44
if (!isExpensifyCard(card)) {
@@ -47,6 +47,10 @@ function getAssignedCardSortKey(card: Card): number {
47
return card?.nameValuePairs?.isVirtual ? 1 : 0;
48
}
49
50
+/**
51
+ * @param card
52
+ * @returns boolean
53
+ */
54
function isExpensifyCard(card?: Card) {
55
if (!card) {
56
return false;
0 commit comments