Skip to content

Commit 6529c12

Browse files
kotatsumurinamachan10777
authored andcommitted
fix(alumni): 2桁月が正しく表示されないバグを修正
1 parent 92cd077 commit 6529c12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/pages/members/Alumnus.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { name, year, month } = Astro.props;
99

1010
<div class="root">
1111
<div class="date">
12-
{`${year}.${("0" + month).slice(-1)}`}
12+
{`${year}.${("0" + month).slice(-2)}`}
1313
</div>
1414
<div class="name">{name}</div>
1515
</div>

0 commit comments

Comments
 (0)