Skip to content

Commit

Permalink
revert notification textation
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Dec 6, 2024
1 parent ec3ee63 commit fc898bc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/sections/xcm/XcmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { genesisHashToChain } from "utils/helpers"
import { Asset } from "@galacticcouncil/sdk"
import { useRpcProvider } from "providers/rpcProvider"
import { ExternalAssetUpdateModal } from "sections/trade/modal/ExternalAssetUpdateModal"
import { tags } from "@galacticcouncil/xcm-cfg"

type WalletChangeDetail = {
srcChain: string
Expand Down Expand Up @@ -76,9 +75,6 @@ export function XcmPage() {
const rpcUrlList = useActiveRpcUrlList()

const handleSubmit = async (e: CustomEvent<TxInfo>) => {
const isSnowbridge = e.detail?.meta?.tags === tags.Tag.Snowbridge
const isApprove = e.detail.transaction.hex.startsWith("0x095ea7b3")

await createTransaction(
{
tx: await getSubmittableExtrinsic(e.detail),
Expand All @@ -87,10 +83,7 @@ export function XcmPage() {
{
onSuccess: () => {},
onSubmitted: () => {},
toast:
!isSnowbridge || isApprove
? getNotificationToastTemplates(e.detail)
: undefined,
toast: getNotificationToastTemplates(e.detail),
},
)
}
Expand Down

0 comments on commit fc898bc

Please sign in to comment.