File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ export const TicketModal: React.FC<TicketModalType> = (
32
32
33
33
const nav = useNavigate ( ) ;
34
34
35
- const distinctNums : number [ ] = [ ] ;
35
+ const distinctNums : string [ ] = [ ] ;
36
36
let distinctTickets : Ticket [ ] = [ ] ;
37
37
tickets . forEach ( ( ticket ) => {
38
- if ( distinctNums . includes ( ticket . ticket ) ) return ;
39
- distinctNums . push ( ticket . ticket ) ;
38
+ if ( distinctNums . includes ( ` ${ ticket . roundId } - ${ ticket . ticket } ` ) ) return ;
39
+ distinctNums . push ( ` ${ ticket . roundId } - ${ ticket . ticket } ` ) ;
40
40
distinctTickets . push ( ticket ) ;
41
41
} ) ;
42
42
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ const UserTickets = (props: { ckey: string }) => {
439
439
if ( page == 1 ) {
440
440
setErrored ( true ) ;
441
441
} else {
442
- setPage ( 1 ) ;
442
+ setPage ( page - 1 ) ;
443
443
}
444
444
return ;
445
445
}
You can’t perform that action at this time.
0 commit comments