@@ -29,10 +29,9 @@ import type {
2929 ReportNameValuePairs ,
3030 TransactionViolation ,
3131} from '@src/types/onyx' ;
32- import type * as OnyxTypes from '@src/types/onyx' ;
3332import type { Attendee , Participant } from '@src/types/onyx/IOU' ;
3433import type { Icon , PendingAction } from '@src/types/onyx/OnyxCommon' ;
35- import { OriginalMessageMovedTransaction } from '@src/types/onyx/OriginalMessage' ;
34+ import type { OriginalMessageMovedTransaction } from '@src/types/onyx/OriginalMessage' ;
3635import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
3736import Timing from './actions/Timing' ;
3837import { getEnabledCategoriesCount } from './CategoryUtils' ;
@@ -785,10 +784,10 @@ function getLastMessageTextForReport(report: OnyxEntry<Report>, lastActorDetails
785784 const properSchemaForModifiedExpenseMessage = ModifiedExpenseMessage . getForReportAction ( { reportOrID : report ?. reportID , reportAction : lastReportAction } ) ;
786785 lastMessageTextFromReport = formatReportLastMessageText ( properSchemaForModifiedExpenseMessage , true ) ;
787786 } else if ( isMovedTransactionAction ( lastReportAction ) ) {
788- const movedTransactionOriginalMessage = getOriginalMessage ( lastReportAction as OnyxTypes . ReportAction < typeof CONST . REPORT . ACTIONS . TYPE . MOVED_TRANSACTION > ) ?? { } ;
787+ const movedTransactionOriginalMessage = getOriginalMessage ( lastReportAction ) ?? { } ;
789788 const { toReportID} = movedTransactionOriginalMessage as OriginalMessageMovedTransaction ;
790- const report = allReports ?. [ `${ ONYXKEYS . COLLECTION . REPORT } ${ toReportID } ` ] ;
791- lastMessageTextFromReport = getMovedTransactionMessage ( report ) ;
789+ const toReport = allReports ?. [ `${ ONYXKEYS . COLLECTION . REPORT } ${ toReportID } ` ] ;
790+ lastMessageTextFromReport = getMovedTransactionMessage ( toReport ) ;
792791 } else if ( isTaskAction ( lastReportAction ) ) {
793792 lastMessageTextFromReport = formatReportLastMessageText ( getTaskReportActionMessage ( lastReportAction ) . text ) ;
794793 } else if ( isCreatedTaskReportAction ( lastReportAction ) ) {
0 commit comments