mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-21 16:01:33 +02:00
chore: remove listed errors from jazz provider
This commit is contained in:
@@ -26,19 +26,14 @@ export function JazzAndAuth({ children }: ChildrenProps) {
|
|||||||
export function JazzAuth({ children }: ChildrenProps) {
|
export function JazzAuth({ children }: ChildrenProps) {
|
||||||
const clerk = useClerk()
|
const clerk = useClerk()
|
||||||
const { isLoaded } = useAuth()
|
const { isLoaded } = useAuth()
|
||||||
const [authMethod, state] = useJazzClerkAuth(clerk)
|
const [authMethod] = useJazzClerkAuth(clerk)
|
||||||
|
|
||||||
if (!isLoaded) return null
|
if (!isLoaded) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Jazz.Provider auth={authMethod || "guest"} peer={JAZZ_PEER_URL}>
|
||||||
{state.errors.map((error: string) => (
|
{children}
|
||||||
<div key={error}>{error}</div>
|
</Jazz.Provider>
|
||||||
))}
|
|
||||||
<Jazz.Provider auth={authMethod || "guest"} peer={JAZZ_PEER_URL}>
|
|
||||||
{children}
|
|
||||||
</Jazz.Provider>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user