Skip to content

Commit a50a39b

Browse files
committed
Fix typo in setter for 'year'
1 parent 303f5f4 commit a50a39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/relative-time-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat
258258
}
259259

260260
set year(value: 'numeric' | '2-digit' | undefined) {
261-
this.setAttribute('day', value || '')
261+
this.setAttribute('year', value || '')
262262
}
263263

264264
get timeZoneName() {

0 commit comments

Comments
 (0)