Skip to content

Commit

Permalink
fix: svelte check
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Jun 13, 2024
1 parent c3a1532 commit 183ec02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/frontend/src/lib/RecipeDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const deleteLocalClone = () => {
<div class="bg-charcoal-900 min-w-[200px] grow flex flex-col p-2 rounded-md space-y-3">
<div class="flex justify-between items-center">
<span class="text-sm" aria-label="model-selected">{model?.name}</span>
{#if recipe?.models?.[0] === model.id}
{#if recipe?.recommended?.[0] === model.id}
<i class="fas fa-star fa-xs text-gray-900" title="Recommended model"></i>
{/if}
</div>
Expand All @@ -150,15 +150,15 @@ const deleteLocalClone = () => {
{/if}
</div>
<div class="px-2 text-xs text-gray-700" aria-label="model-warning">
{#if recipe?.models?.[0] === model.id}
{#if recipe?.recommended?.[0] === model.id}
* This is the default, recommended model for this recipe. You can <a
class="underline"
href="{`/recipe/${recipeId}/models`}">swap for a different compatible model</a
>.
{:else}
* The default model for this recipe is {findModel(recipe?.models?.[0])?.name}. You can
* The default model for this recipe is {findModel(recipe?.recommended?.[0])?.name}. You can
<a class="underline" href="{`/recipe/${recipeId}/models`}"
>swap for {findModel(recipe?.models?.[0])?.name} or a different compatible model</a
>swap for {findModel(recipe?.recommended?.[0])?.name} or a different compatible model</a
>.
{/if}
</div>
Expand Down

0 comments on commit 183ec02

Please sign in to comment.