Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
a.muhin committed Apr 13, 2022
1 parent b6ce0ba commit ce13d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/BoundingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = {
}

export const BoundingBox = ({ depth, height, position: [x, y, z], width }: Props) => {
const { reset: onCollide } = useStore(({ actions: { reset } }) => ({ reset }))
const { reset: onCollide } = useStore(({ actions: { reset } }) => ({ reset: reset as () => void }))

const sharedProps = {
isTrigger: true,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Finished.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Auth } from './Auth'
import type { SavedScore } from '../data'

export const Finished = (): JSX.Element => {
const { finished: time, reset, session } = useStore(({ actions: { reset }, finished, session }) => ({ finished, reset, session }))
const { finished: time, reset, session } = useStore(({ actions: { reset }, finished, session }) => ({ finished, reset: reset as () => void, session }))
const [scoreId, setScoreId] = useState<SavedScore['id']>('')
const [scores, setScores] = useState<SavedScore[]>([])
const [position, setPosition] = useState<number>(0)
Expand Down

0 comments on commit ce13d32

Please sign in to comment.