@@ -32,6 +32,8 @@ function useDeleteTransactions({report, reportActions, policy}: UseDeleteTransac
3232 const [ allPolicyRecentlyUsedCategories ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY_RECENTLY_USED_CATEGORIES , { canBeMissing : true } ) ;
3333 const [ allReportNameValuePairs ] = useOnyx ( ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS , { canBeMissing : true } ) ;
3434 const currentUserPersonalDetails = useCurrentUserPersonalDetails ( ) ;
35+ const currentUserAccountID = currentUserPersonalDetails . accountID ;
36+ const currentUserLogin = currentUserPersonalDetails . login ?? '' ;
3537 const [ transactionViolations ] = useOnyx ( ONYXKEYS . COLLECTION . TRANSACTION_VIOLATIONS , { canBeMissing : true } ) ;
3638
3739 const { isBetaEnabled} = usePermissions ( ) ;
@@ -127,8 +129,8 @@ function useDeleteTransactions({report, reportActions, policy}: UseDeleteTransac
127129 iouReport,
128130 firstIOU : originalTransactionIouActions . at ( 0 ) ,
129131 isASAPSubmitBetaEnabled : isBetaEnabled ( CONST . BETAS . ASAP_SUBMIT ) ,
130- currentUserAccountIDParam : currentUserPersonalDetails . accountID ,
131- currentUserEmailParam : currentUserPersonalDetails . login ?? '' ,
132+ currentUserAccountIDParam : currentUserAccountID ,
133+ currentUserEmailParam : currentUserLogin ,
132134 transactionViolations,
133135 } ) ;
134136 }
@@ -173,8 +175,8 @@ function useDeleteTransactions({report, reportActions, policy}: UseDeleteTransac
173175 policy ,
174176 archivedReportsIdSet ,
175177 isBetaEnabled ,
176- currentUserPersonalDetails . accountID ,
177- currentUserPersonalDetails . login ,
178+ currentUserAccountID ,
179+ currentUserLogin ,
178180 transactionViolations ,
179181 ] ,
180182 ) ;
0 commit comments