Skip to content

Commit

Permalink
remove debug console.log's
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hatch committed Dec 30, 2023
1 parent 53cbf42 commit 5e56408
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/routes/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ export async function action({ request }: ActionFunctionArgs) {

const url = new URL(request.url)
let redirectAddress = '/'
console.log(`unset is ${typeof url.searchParams.get('unset')}`)

if ('true' === url.searchParams.get('unset')) {
console.log(`here and ${form.get('redirect_to')}`)
redirectAddress = (form.get('redirect_to') as string) ?? redirectAddress
}
console.log(`redirectAddress is ${redirectAddress}`)

return redirect(redirectAddress, {
headers: {
'Set-Cookie': await commitSession(session),
Expand Down

0 comments on commit 5e56408

Please sign in to comment.