File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ export const metadata = {
19
19
export default async function SchedulePage ( { params } ) {
20
20
const { slug } = await params ;
21
21
let team = getTeamDataByAbbreviation ( slug ?. toUpperCase ( ) , true ) ;
22
- if ( ! team || team . abbreviation === 'NHL' ) {
22
+ if ( ! team . teamId || team . abbreviation === 'NHL' ) {
23
23
team = getTeamDataBySlug ( slug ) ;
24
24
}
25
25
26
- if ( ! team || team . abbreviation === 'NHL' ) {
26
+ if ( ! team . teamId || team . abbreviation === 'NHL' ) {
27
27
return (
28
28
< div className = "py-10 text-center text-2xl" style = { { minHeight : '60vh' } } >
29
29
Team not found matching { slug } .
Original file line number Diff line number Diff line change @@ -285,7 +285,33 @@ const teamData = [
285
285
teamColor : '#041e42' ,
286
286
secondaryTeamColor : '#296ec8' ,
287
287
teamId : 52 ,
288
- }
288
+ } ,
289
+ // International
290
+ {
291
+ name : 'Canada' ,
292
+ abbreviation : 'CAN' ,
293
+ teamColor : '#c8102e' ,
294
+ secondaryTeamColor : '#ddcba4' ,
295
+ } ,
296
+ {
297
+ name : 'Finland' ,
298
+ abbreviation : 'FIN' ,
299
+ teamColor : '#041e42' ,
300
+ secondaryTeamColor : '#ffb81c' ,
301
+ } ,
302
+ {
303
+ name : 'Sweden' ,
304
+ abbreviation : 'SWE' ,
305
+ teamColor : '#006EB3' ,
306
+ secondaryTeamColor : '#041e42' ,
307
+ } ,
308
+ {
309
+ name : 'USA' ,
310
+ abbreviation : 'USA' ,
311
+ teamColor : '#003087' ,
312
+ secondaryTeamColor : '#c8102e' ,
313
+ } ,
314
+
289
315
] ;
290
316
291
317
const defaultTeam = ( isHome ) => {
You can’t perform that action at this time.
0 commit comments