Skip to content

Commit 3d98848

Browse files
authored
Merge pull request Expensify#63828 from software-mansion-labs/@szymczak/fix-TransactionItemRow-bugs
[CP Staging] Fix hold message is not displayed under expense row after holding expense from RHP
2 parents d06b68b + e72d6c6 commit 3d98848

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

src/components/TransactionItemRow/index.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import TagCell from './DataCells/TagCell';
4444
import TaxCell from './DataCells/TaxCell';
4545
import TotalCell from './DataCells/TotalCell';
4646
import TypeCell from './DataCells/TypeCell';
47-
import TransactionItemRowRBR from './TransactionItemRowRBR';
4847
import TransactionItemRowRBRWithOnyx from './TransactionItemRowRBRWithOnyx';
4948

5049
type ColumnComponents = {
@@ -441,18 +440,10 @@ function TransactionItemRow({
441440
</View>
442441
{columns?.map((column) => columnComponent[column])}
443442
</View>
444-
{}
445-
{isInReportTableView ? (
446-
<TransactionItemRowRBRWithOnyx
447-
transaction={transactionItem}
448-
missingFieldError={missingFieldError}
449-
/>
450-
) : (
451-
<TransactionItemRowRBR
452-
transactionViolations={transactionItem.violations}
453-
missingFieldError={missingFieldError}
454-
/> // We are rendering this component only if we are not in the report table view for performance reasons
455-
)}
443+
<TransactionItemRowRBRWithOnyx
444+
transaction={transactionItem}
445+
missingFieldError={missingFieldError}
446+
/>
456447
</View>
457448
</Animated.View>
458449
)}

0 commit comments

Comments
 (0)