Skip to content

Commit

Permalink
reword variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Dec 17, 2024
1 parent aa0f8d4 commit cbccad8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { i18n } from "$lib/stores/i18n";
import type { ReportingPeriod } from "$lib/types/reporting";
let selectedRange: ReportingPeriod = "all";
let period: ReportingPeriod = "all";
const options: Array<{
value: ReportingPeriod;
Expand All @@ -14,7 +14,7 @@
];
function handleChange(value: ReportingPeriod) {
selectedRange = value;
period = value;
}
</script>

Expand All @@ -28,8 +28,8 @@
type="radio"
name="dateRange"
value={option.value}
checked={selectedRange === option.value}
aria-checked={selectedRange === option.value}
checked={period === option.value}
aria-checked={period === option.value}
on:change={() => handleChange(option.value)}
/>
<span class="label">{option.label}</span>
Expand Down

0 comments on commit cbccad8

Please sign in to comment.