Skip to content

Commit 2cea18a

Browse files
committed
change const name
1 parent ccdfc60 commit 2cea18a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/CONST/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ const CONST = {
12831283
ACTIONABLE_MENTION_WHISPER: 'ACTIONABLEMENTIONWHISPER',
12841284
ACTIONABLE_REPORT_MENTION_WHISPER: 'ACTIONABLEREPORTMENTIONWHISPER',
12851285
ACTIONABLE_TRACK_EXPENSE_WHISPER: 'ACTIONABLETRACKEXPENSEWHISPER',
1286-
EXPENSE_CHAT_WELCOME_WHISPER: 'EXPENSECHATWELCOMEWHISPER',
1286+
POLICY_EXPENSE_CHAT_WELCOME_WHISPER: 'POLICYEXPENSECHATWELCOMEWHISPER',
12871287
ADD_COMMENT: 'ADDCOMMENT',
12881288
APPROVED: 'APPROVED',
12891289
CARD_MISSING_ADDRESS: 'CARDMISSINGADDRESS',

src/libs/ReportActionsUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ function isActionableReportMentionWhisper(reportAction: OnyxEntry<ReportAction>)
745745
* Checks if a given report action corresponds to a welcome whisper.
746746
* @param reportAction
747747
*/
748-
function isExpenseChatWelcomeWhisper(reportAction: OnyxEntry<ReportAction>): reportAction is ReportAction<typeof CONST.REPORT.ACTIONS.TYPE.EXPENSE_CHAT_WELCOME_WHISPER> {
749-
return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.EXPENSE_CHAT_WELCOME_WHISPER);
748+
function isExpenseChatWelcomeWhisper(reportAction: OnyxEntry<ReportAction>): reportAction is ReportAction<typeof CONST.REPORT.ACTIONS.TYPE.POLICY_EXPENSE_CHAT_WELCOME_WHISPER> {
749+
return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.POLICY_EXPENSE_CHAT_WELCOME_WHISPER);
750750
}
751751

752752
/**

src/types/onyx/OriginalMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ type OriginalMessageActionableReportMentionWhisper = {
136136
};
137137

138138
/** Model of `welcome whisper` report action */
139-
type OriginalMessageExpenseChatWelcomeWhisper = {
139+
type OriginalMessagePolicyExpenseChatWelcomeWhisper = {
140140
/** HTML content of the welcome message */
141141
html: string;
142142

@@ -847,7 +847,7 @@ type OriginalMessageMap = {
847847
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_WHISPER]: OriginalMessageActionableMentionWhisper;
848848
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_REPORT_MENTION_WHISPER]: OriginalMessageActionableReportMentionWhisper;
849849
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_TRACK_EXPENSE_WHISPER]: OriginalMessageActionableTrackedExpenseWhisper;
850-
[CONST.REPORT.ACTIONS.TYPE.EXPENSE_CHAT_WELCOME_WHISPER]: OriginalMessageExpenseChatWelcomeWhisper;
850+
[CONST.REPORT.ACTIONS.TYPE.POLICY_EXPENSE_CHAT_WELCOME_WHISPER]: OriginalMessagePolicyExpenseChatWelcomeWhisper;
851851
[CONST.REPORT.ACTIONS.TYPE.ADD_COMMENT]: OriginalMessageAddComment;
852852
[CONST.REPORT.ACTIONS.TYPE.APPROVED]: OriginalMessageApproved;
853853
[CONST.REPORT.ACTIONS.TYPE.CHANGE_FIELD]: never;

0 commit comments

Comments
 (0)