Skip to content

Commit

Permalink
Remove toast
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Nov 28, 2023
1 parent 1f13788 commit bf1777c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Input,
InputGroup,
InputRightElement,
useToast,
} from '@chakra-ui/react'
import type React from 'react'
import { useCallback, useState } from 'react'
Expand All @@ -13,7 +12,6 @@ import { useNavigate } from 'react-router-dom'
export const AccountInput = () => {
const [accountId, setAccountId] = useState('')
const navigate = useNavigate()
const toast = useToast()

const validate = useCallback(() => {
try {
Expand All @@ -22,7 +20,7 @@ export const AccountInput = () => {
} catch {
return false
}
}, [accountId, toast])
}, [accountId])

const handleInputChange = useCallback(
(e: { target: { value: React.SetStateAction<string> } }) => {
Expand Down

0 comments on commit bf1777c

Please sign in to comment.