Skip to content

Commit

Permalink
refactor: rename parameters in buildNotificationText function
Browse files Browse the repository at this point in the history
  • Loading branch information
deeonwuli committed Dec 20, 2024
1 parent 97a53cd commit ccedbda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data/repositories/NotificationD2Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export class NotificationD2Repository implements NotificationRepository {
}

function buildNotificationText(
outbreakKey: string,
district: string,
outbreakName: string,
districtName: string,
notificationData: NotificationOptions
): string {
const {
Expand All @@ -111,7 +111,7 @@ function buildNotificationText(
} = notificationData;
const verificationStatus = verificationStatusCodeMap[verificationStatusCode] ?? "";

return i18n.t(`There has been a new Outbreak detected for ${outbreakKey} in ${district}.
return i18n.t(`There has been a new Outbreak detected for ${outbreakName} in ${districtName}.
Please see the details of the outbreak below:
Expand Down

0 comments on commit ccedbda

Please sign in to comment.