Skip to content

Commit

Permalink
Refactoring: use default value in translation function (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilleHoardings committed Feb 16, 2023
1 parent 669e360 commit 4cdd4bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/components/Tasks/Task/Task.tsx
Expand Up @@ -184,9 +184,9 @@ export const Task = () => {
/>
<UnchangedWarning
show={taskStatus.mode === "DEFAULT_WARN"}
title={t(getTypeSafei18nKey(`${taskInfo.id}.unchanged_title`)) || t("default.unchanged_title")}
message={t(getTypeSafei18nKey(`${taskInfo.id}.unchanged_message`)) || t("default.unchanged_message")}
continueButtonText={t(getTypeSafei18nKey(`${taskInfo.id}.continue_anyway`)) || t("default.continue_anyway")}
title={t(getTypeSafei18nKey(`${taskInfo.id}.unchanged_title`), t("default.unchanged_title"))}
message={t(getTypeSafei18nKey(`${taskInfo.id}.unchanged_message`), t("default.unchanged_message"))}
continueButtonText={t(getTypeSafei18nKey(`${taskInfo.id}.continue_anyway`), t("default.continue_anyway"))}
onClose={() => taskEvent({ action: "RETURN_EDIT" })}
onContinueAnyway={() => {
taskEvent({ action: "ACCEPT_DEFAULT" });
Expand Down

0 comments on commit 4cdd4bb

Please sign in to comment.