Skip to content

Commit

Permalink
make lint not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 30, 2024
1 parent 408a65b commit d9750c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/src/components/organisms/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,19 @@ export const TouchToast = ({
}, [open])

React.useEffect(() => {
const originalTop = 0.025 * window.innerHeight
// const originalTop = 0.025 * window.innerHeight
if (touches.length && !popped) {
let didEnd = false
// let didEnd = false
let lastTouch = touches[touches.length - 1]
if (lastTouch === undefined) {
lastTouch = touches[touches.length - 2] || 0
didEnd = true
// didEnd = true
}

const fontSize = parseInt(
getComputedStyle(document.documentElement).fontSize,
)
const difference = ((touches[0] as number) - lastTouch) as number
// const fontSize = parseInt(
// getComputedStyle(document.documentElement).fontSize,
// )
// const difference = ((touches[0] as number) - lastTouch) as number

// if (didEnd) {
// if (
Expand Down

0 comments on commit d9750c0

Please sign in to comment.