Skip to content

Commit

Permalink
fix: return is is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jun 22, 2024
1 parent 0c7256b commit ce86e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default function Home() {
const navigate = useNavigate()

async function translate() {
if (isLoading) {
return
}
setIsLoading(true)
const resp = await invoke<TranslateResponse>('translate', {
language,
Expand Down

0 comments on commit ce86e67

Please sign in to comment.