fix: ehm in realtà le pagine utente non funzionavano per niente
This commit is contained in:
@@ -3,7 +3,7 @@ import { JSX } from 'preact/jsx-runtime'
|
||||
import { ProblemId, Solution as SolutionModel, SolutionId, SolutionStatus, UserId } from '../../shared/model'
|
||||
import { prependBaseUrl } from '../../shared/utils'
|
||||
import { server } from '../api'
|
||||
import { useCurrentUser } from '../hooks/useCurrentUser'
|
||||
import { useLoggedInUser } from '../hooks/useCurrentUser'
|
||||
import { Markdown } from './Markdown'
|
||||
|
||||
const STATUS_SELECT_OPTIONS: Record<SolutionStatus, JSX.Element> = {
|
||||
@@ -37,7 +37,7 @@ export const Solution = ({
|
||||
setSolution,
|
||||
refreshSolution,
|
||||
}: Props) => {
|
||||
const [user] = useCurrentUser()
|
||||
const [user] = useLoggedInUser()
|
||||
|
||||
const markAsCorrect = async () => {
|
||||
setSolution?.(prevSolution => ({ ...prevSolution, status: 'correct' }))
|
||||
|
||||
Reference in New Issue
Block a user