Skip to content

Commit

Permalink
fix: add missing safeTranslate
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 20, 2024
1 parent 4c38ba5 commit cbe6a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ModelTable/ModelTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
on:click={(e) => e.stopPropagation()}>{val.str}</a
>
{:else if val.str}
{val.str}
{safeTranslate(val.str)}
{:else if unsafeTranslate(val.split(':')[0])}
<span class="text"
>{unsafeTranslate(val.split(':')[0] + 'Colon')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div class="flex flex-row space-x-1">
<p class="flex flex-col items-center">
<span class="text-xs text-gray-500">{m.riskOrigin()}</span>
<span class="font-bold">{roto.risk_origin} /</span>
<span class="font-bold">{safeTranslate(roto.risk_origin)} /</span>
</p>
<p class="flex flex-col items-center">
<span class="text-xs text-gray-500">{m.targetObjective()}</span>
Expand Down

0 comments on commit cbe6a28

Please sign in to comment.