Skip to content

Commit 6d0f67b

Browse files
committed
Remove testing code
1 parent c8311f1 commit 6d0f67b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"build": "astro build",
2929
"preview": "astro preview --port 3333",
3030
"astro": "astro",
31-
"lint": "npm run tsc && npm run check-format",
31+
"lint": "npm run check && npm run check-format",
3232
"eslint": "eslint src/**/*.{js,jsx,ts,tsx}",
3333
"check": "astro check",
3434
"check-format": "prettier --no-error-on-unmatched-pattern --check **/*.{astro,js,jsx,ts,tsx,css,md,html,yml,yaml,json}",

src/pages/index.astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import Footer from '@/components/Footer.astro'
1212
import Header from '@/components/Header.astro'
1313
1414
const TWELVE_HOURS = 1000 * 60 * 60 * 12
15-
// const futureEvents = events.filter(
16-
// t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now()
17-
// )
18-
const futureEvents = [events.at(-1)]
15+
const futureEvents = events.filter(
16+
t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now()
17+
)
18+
19+
// const futureEvents = [events.at(-1)]
1920
---
2021

2122
<BaseLayout pageTitle="SeattleJS">

0 commit comments

Comments
 (0)