mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01: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) {
|
||||
const clerk = useClerk()
|
||||
const { isLoaded } = useAuth()
|
||||
const [authMethod, state] = useJazzClerkAuth(clerk)
|
||||
const [authMethod] = useJazzClerkAuth(clerk)
|
||||
|
||||
if (!isLoaded) return null
|
||||
|
||||
return (
|
||||
<>
|
||||
{state.errors.map((error: string) => (
|
||||
<div key={error}>{error}</div>
|
||||
))}
|
||||
<Jazz.Provider auth={authMethod || "guest"} peer={JAZZ_PEER_URL}>
|
||||
{children}
|
||||
</Jazz.Provider>
|
||||
</>
|
||||
<Jazz.Provider auth={authMethod || "guest"} peer={JAZZ_PEER_URL}>
|
||||
{children}
|
||||
</Jazz.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user