Skip to content

Commit d320872

Browse files
add log on xdm
1 parent ee1452b commit d320872

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

explorer/src/components/Transfer/index.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import useWallet from 'hooks/useWallet'
1818
import { useSearchParams } from 'next/navigation'
1919
import { FC, useCallback, useEffect, useMemo, useState } from 'react'
2020
import toast from 'react-hot-toast'
21+
import { log } from 'utils/log'
2122
import { floatToStringWithDecimals, formatUnitsToNumber } from 'utils/number'
2223
import { WalletButton } from '../WalletButton'
2324
import { AmountField } from './AmountField'
@@ -72,10 +73,13 @@ export const Transfer: FC = () => {
7273

7374
const handleSubmit = useCallback(
7475
async (values: FormValues) => {
76+
log('transfer', 'handleSubmit', 'values', values)
7577
if (!injector || !api)
7678
return toast.error('We are not able to connect to the blockchain', {
7779
position: 'bottom-center',
7880
})
81+
log('transfer', 'handleSubmit', 'injector', injector)
82+
log('transfer', 'handleSubmit', 'api', api)
7983

8084
const to = values.receiver || subspaceAccount
8185
if (!to) return toast.error('Receiver is required', { position: 'bottom-center' })

0 commit comments

Comments
 (0)