From 62ce308fe16f11693d8c9c3d395007b4375094c4 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 22 Jan 2021 11:32:53 -0600 Subject: [PATCH] Fix sticker creator upload warning --- sticker-creator/app/stages/UploadStage.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sticker-creator/app/stages/UploadStage.tsx b/sticker-creator/app/stages/UploadStage.tsx index 46c7ccfb57b1..6dd3fa808d29 100644 --- a/sticker-creator/app/stages/UploadStage.tsx +++ b/sticker-creator/app/stages/UploadStage.tsx @@ -1,4 +1,4 @@ -// Copyright 2019-2020 Signal Messenger, LLC +// Copyright 2019-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; @@ -59,8 +59,9 @@ export const UploadStage: React.ComponentType = () => {

{i18n('StickerCreator--UploadStage--title')}

{i18n('StickerCreator--UploadStage-uploaded', { - count: complete, - total, + // We convert these to string so that 0 isn't falsy, which i18n checks for. + count: String(complete), + total: String(total), })}