Skip to content

Commit

Permalink
add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gvkhna committed Jun 2, 2024
1 parent 9c020f9 commit c86a734
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/pages/signin.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const existingSession = await verifyValidSession(Astro.locals, Astro.cookies)
if (existingSession.valid && existingSession.redirect) {
return existingSession.redirect
}
deleteUserAuthCookie(Astro.cookies)
deleteUserProfileCookie(Astro.cookies)
const displayError = existingSession.displayError
const authLink = githubNewOauthSigninUrl(Astro.cookies)
---
Expand Down
2 changes: 1 addition & 1 deletion src/partials/dashboard/dashboard-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function DashboardPage(props: DashboardPageProps) {

console.log('data: ', data)

if (error) return <div>failed to load</div>
if (error) return <div>failed to load {error.toString()}</div>
if (isLoading) return <div></div>
return (
<div className='border-b'>
Expand Down

0 comments on commit c86a734

Please sign in to comment.