Skip to content

Commit 540b265

Browse files
committed
A more general fix
1 parent 6857ae8 commit 540b265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Page/Paid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Paid extends React.Component{
176176
.filter(student=>
177177
(
178178
(student.id.length === 7 && student.id.startsWith(("0"+(this.Year-this.state.Index-4)).substr(-2)))
179-
|| (student.id.length === 9 && student.id.startsWith(("10"+(this.Year-this.state.Index-4)).substr(-3)))
179+
|| (student.id.length === 9 && student.id.startsWith(("1" + ("0"+(this.Year-this.state.Index-4)).substr(-2))))
180180
)
181181
&& ( !this.props.filter || student.paid === 1 )
182182
).sort((a,b)=> a.id.localeCompare(b.id, 'zh-Hant-TW'))

0 commit comments

Comments
 (0)