diff --git a/.changeset/slow-readers-help.md b/.changeset/slow-readers-help.md new file mode 100644 index 000000000000..2fe4881b56a0 --- /dev/null +++ b/.changeset/slow-readers-help.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixes an issue where the update banner wasn't showing the new version number diff --git a/apps/meteor/client/views/banners/hooks/useUserBanners.ts b/apps/meteor/client/views/banners/hooks/useUserBanners.ts index 8623173b348e..e11a4b6224ad 100644 --- a/apps/meteor/client/views/banners/hooks/useUserBanners.ts +++ b/apps/meteor/client/views/banners/hooks/useUserBanners.ts @@ -27,7 +27,12 @@ export const useUserBanners = () => { banners.open({ id: firstBanner.id, title: i18n.exists(firstBanner.title) ? t(firstBanner.title) : firstBanner.title, - text: i18n.exists(firstBanner.text) ? t(firstBanner.text, firstBanner.textArguments) : firstBanner.text, + text: i18n.exists(firstBanner.text) + ? t(firstBanner.text, { + postProcess: 'sprintf', + sprintf: firstBanner.textArguments, + }) + : firstBanner.text, modifiers: firstBanner.modifiers, action() { if (firstBanner.link) {