Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed Oct 3, 2023
1 parent 47b61d0 commit e214bee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/TransactionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import DateUtils from './DateUtils';
import * as NumberUtils from './NumberUtils';
import {RecentWaypoint, ReportAction, Transaction} from '../types/onyx';
import {Receipt, Comment, WaypointCollection} from '../types/onyx/Transaction';
import _ from 'underscore';
import _ from 'lodash';

type AdditionalTransactionChanges = {comment?: string; waypoints?: WaypointCollection};

Expand Down Expand Up @@ -364,8 +364,8 @@ function getValidWaypoints(waypoints: WaypointCollection, reArrangeIndexes = fal
/**
* Returns the most recent transactions in an object
*/
function getRecentTransactions(transactions: {[index: string]: string}, size = 2): Array<String> {
return _.sortBy(_.keys(transactions), (transactionID) => -new Date(transactions[transactionID])).slice(0, size);
function getRecentTransactions(transactions: Record<string, string>, size = 2): unknown[] {
return _.sortBy(Object.keys(transactions), (transactionID) => -new Date(transactions[transactionID])).slice(0, size);
}

export {
Expand Down

0 comments on commit e214bee

Please sign in to comment.