Skip to content

Commit

Permalink
es-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Nov 3, 2023
1 parent f9e5533 commit bfdb132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/styles/StyleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ function getDefaultWorkspaceAvatarColor(workspaceName: string): ViewStyle {
* Helper method to return eReceipt color code
*/
function getEReceiptColorCode(transaction: Transaction): EReceiptColorName {
const parentTransactionID = transaction.parentTransactionID || '';
const transactionID = parentTransactionID ? parentTransactionID : transaction.transactionID || '';
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const transactionID = transaction.parentTransactionID || transaction.transactionID || '';

const colorHash = UserUtils.hashText(transactionID.trim(), eReceiptColors.length);

Expand Down

0 comments on commit bfdb132

Please sign in to comment.