Skip to content

Commit

Permalink
[wallet] Reversed sort of Payment Requests (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvol committed Nov 11, 2019
1 parent fdbf0cd commit 95f7e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mobile/src/firebase/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function createPaymentRequestChannel(address: string) {
}

const compareTimestamps = (a: PaymentRequest, b: PaymentRequest) => {
return new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()
return new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
}

const onlyRequested = (pr: PaymentRequest) => pr.status === PaymentRequestStatus.REQUESTED
Expand Down

0 comments on commit 95f7e35

Please sign in to comment.