Skip to content

Commit

Permalink
Merge pull request #2219 from saithsab877/add-success-toast
Browse files Browse the repository at this point in the history
[Create Bounty]: Add `Success Toast` in Top Right When Creating a Bounty
  • Loading branch information
Rassl authored Sep 25, 2024
2 parents 2f2e7b9 + a1112c3 commit fe681f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState } from 'react'
import { FormProvider, useForm } from 'react-hook-form'
import { SuccessNotify } from '~/components/common/SuccessToast'
import { postBountyData } from '~/network/postBounty'
import { useSelectedNode } from '~/stores/useGraphStore'
import { useModal } from '~/stores/useModalStore'
Expand Down Expand Up @@ -37,6 +38,7 @@ export const Body = () => {

try {
await postBountyData(payload)
SuccessNotify('Bounty Created')
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
setErrMessage(err)
Expand Down

0 comments on commit fe681f4

Please sign in to comment.