Skip to content

Commit

Permalink
Reintroduce index that got lost during merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
smcepeda committed Oct 2, 2023
1 parent 5ce33ff commit f518f6d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/src/lib/WeatherOverview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@
{#each weatherData.hours as hours, index}
{#if index >= currentIndex}
<SingleDay
currentTime={new Date(hours.date_time).toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
})}
currentTime={index === currentIndex
? "Jetzt"
: new Date(hours.date_time).toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
})}
symbol={hours.symbol_code}
dimensions="w-6 h-6"
dailyTemp={hours.TTT_C}
rainInMM={hours.RRR_MM}
{size}
/>
{/if}
{/each}
Expand Down

0 comments on commit f518f6d

Please sign in to comment.