Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
a.muhin authored and bjornstar committed Apr 15, 2022
1 parent 78f2cd3 commit 46aead1
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

1 comment on commit 46aead1

@vercel
Copy link

@vercel vercel bot commented on 46aead1 Apr 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.