fix: ehm in realtà le pagine utente non funzionavano per niente

This commit is contained in:
2023-01-12 14:36:09 +01:00
parent fab8398a7a
commit 8a911f5ddb
9 changed files with 47 additions and 35 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { MarkdownEditor } from '../components/MarkdownEditor'
import { Problem } from '../components/Problem'
import { Solution } from '../components/Solution'
import { MetadataContext, useListResource, useResource, ServerContext, DatabaseContext, useServerAsyncCallback } from '../hooks'
import { useCurrentUser } from '../hooks/useCurrentUser'
import { useLoggedInUser } from '../hooks/useCurrentUser'
type RouteProps = {
id: string
@@ -27,7 +27,7 @@ export const ProblemPage = ({ id }: RouteProps) => {
})
}
const [user] = useCurrentUser()
const [user] = useLoggedInUser()
const [source, setSource] = useState('')