Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video 137 - BitTree #237

Open
abhinavgautam01 opened this issue Dec 7, 2024 · 0 comments
Open

video 137 - BitTree #237

abhinavgautam01 opened this issue Dec 7, 2024 · 0 comments

Comments

@abhinavgautam01
Copy link

abhinavgautam01 commented Dec 7, 2024

after creating Bit Tree - by clicking on the button
we have cleared the input texts as:

if(result.success){ 
     toast.success(result.message)
     setLinks([])
     setpic("")
     sethandle("")
    }
    else{
      toast.error(result.message)
    }

It will show error, if we try to input handle again

So it should be done in this way:

if(result.success){ 
     toast.success(result.message)
     setLinks([{link:"", linktext:""}])
     setpic("")
     sethandle("")
     setdesc("")
    }
    else{
      toast.error(result.message)
    }

it will remove the error and make the code little better..!
@CodeWithHarry
@it-is-Aman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant