mirror of
https://github.com/linsa-io/linsa.git
synced 2026-11-15 21:32:24 +01:00
chore: remove listed errors from jazz provider
This commit is contained in:
1 parent
e78d4fce7a
commit
aea2431934
1 file changed
+4
-9
@@ -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