Skip to content

Commit

Permalink
OAuth: fix client-side crash on authorize page (bluesky-social#2749)
Browse files Browse the repository at this point in the history
oauth: fix client-side crash on authorize page
  • Loading branch information
devinivy authored Aug 27, 2024
1 parent a1d8c77 commit c180cf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-rice-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/oauth-provider": patch
---

Fix client-side crash on authorize page
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, HTMLAttributes, useMemo } from 'react'
import { HTMLAttributes, useMemo } from 'react'

export type UrlPartRenderingOptions = {
faded?: boolean
Expand Down Expand Up @@ -28,7 +28,7 @@ export function UrlViewer({
const urlObj = useMemo(() => new URL(url), [url])

return (
<Component as={As} {...attrs}>
<As {...attrs}>
{proto && (
<UrlPartViewer
value={`${urlObj.protocol}//`}
Expand Down Expand Up @@ -56,7 +56,7 @@ export function UrlViewer({
{hash && (
<UrlPartViewer value={urlObj.hash} {...(hash === true ? null : hash)} />
)}
</Component>
</As>
)
}

Expand Down

0 comments on commit c180cf4

Please sign in to comment.