Set default year selection to the current year for better usability

Update the year selector component in Publicities.tsx to default to the current year, improving the user experience by pre-selecting the most relevant year.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
This commit is contained in:
michaelschal committed 2025-08-21 11:34:41 +00:00
1 parent bac38b76d7
commit 393ee4a231
1 file changed
+2 -1
+2 -1
View File
@@ -286,9 +286,10 @@ export default function Publicities() {
<Select
value={selectedYear.toString()}
onValueChange={(value) => setSelectedYear(parseInt(value))}
defaultValue={new Date().getFullYear().toString()}
>
<SelectTrigger className="w-32">
<SelectValue />
<SelectValue placeholder={selectedYear.toString()} />
</SelectTrigger>
<SelectContent>
{yearOptions.map((year) => (