Skip to content

Commit

Permalink
ci: avoid undefined variable for risk scenario SOK
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Mar 11, 2024
1 parent a2ea625 commit 89993f5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { localItems, toCamelCase } from '$lib/utils/locales';
import ModelTable from '$lib/components/ModelTable/ModelTable.svelte';
import { color } from 'echarts';
export let data: PageData;
Expand Down Expand Up @@ -213,7 +212,13 @@
{#if data.scenario.strength_of_knowledge.symbol}
{data.scenario.strength_of_knowledge.symbol}
{/if}
<span class="font-semibold">{localItems(languageTag())[toCamelCase(data.scenario.strength_of_knowledge.name)]}</span> :
<span class="font-semibold">
{#if localItems(languageTag())[toCamelCase(data.scenario.strength_of_knowledge.name)]}
{localItems(languageTag())[toCamelCase(data.scenario.strength_of_knowledge.name)]}
{:else}
{localItems(languageTag())["undefined"]}
{/if}
</span> :
{localItems(languageTag())[toCamelCase(data.scenario.strength_of_knowledge.name) + 'SOK']}
</p>
</div>
Expand Down

0 comments on commit 89993f5

Please sign in to comment.