Skip to content

Commit

Permalink
fix: 🐛 Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoannis Sánchez Soto committed Nov 17, 2024
1 parent 974a73f commit d33dadb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,8 @@ export const Editor = () => {
})
}

console.log("result")
console.log({ data: result, name: setting.name })

setResultsData([...resultsData, { data: result, name: setting.name }])

/* Calculate processing time */
const end = performance.now()
const time = end - start
toast.success(`🚀 Successful operation in ${Math.floor(time / 1000)} s`)

sendGAEvent({ event: "remove-background", value: "success" })
const url = URL.createObjectURL(result)
setResultData(url)
Expand All @@ -269,6 +261,10 @@ export const Editor = () => {
}, 100)
}

/* Calculate processing time */
const end = performance.now()
const time = end - start
toast.success(`🚀 Successful operation in ${Math.floor(time / 1000)} s`)
setShowDialog(false)
}

Expand Down

0 comments on commit d33dadb

Please sign in to comment.