Skip to content

Commit

Permalink
use lodashHas instead of _.has
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 11, 2023
1 parent c75394a commit a3981c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Onyx from 'react-native-onyx';
import _ from 'underscore';
import lodashGet from 'lodash/get';
import lodashHas from 'lodash/has';
import Str from 'expensify-common/lib/str';
import {format} from 'date-fns';
import CONST from '../../CONST';
Expand Down Expand Up @@ -1055,7 +1056,7 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
let oneOnOneChatReport;
let isNewOneOnOneChatReport = false;
let shouldCreateOptimisticPersonalDetails = false;
const personalDetailExists = _.has(allPersonalDetails, accountID);
const personalDetailExists = lodashHas(allPersonalDetails, accountID);
// If this is a split between two people only and the function
// wasn't provided with an existing group chat report id
// or, if the split is being made from the workspace chat, then the oneOnOneChatReport is the same as the splitChatReport
Expand Down

0 comments on commit a3981c3

Please sign in to comment.