diff --git a/packages/neuron-ui/src/components/BroadcastTransaction/index.tsx b/packages/neuron-ui/src/components/BroadcastTransaction/index.tsx index 383d25efb8..45083447a8 100644 --- a/packages/neuron-ui/src/components/BroadcastTransaction/index.tsx +++ b/packages/neuron-ui/src/components/BroadcastTransaction/index.tsx @@ -19,7 +19,7 @@ const BroadcastTransaction = () => { } = useGlobalState() const [isBroadcasting, setIsBroadcasting] = useState(false) - const [broadcastedTxHash, setBroadCastedTxHash] = useState('') + const [broadcastedTxHash, setBroadcastedTxHash] = useState('') const [t] = useTranslation() const dispatch = useDispatch() const [errMsg, setErrMsg] = useState('') @@ -54,7 +54,7 @@ const BroadcastTransaction = () => { if (isSuccessResponse(res)) { if (!wallet?.id) { - setBroadCastedTxHash(res.result) + setBroadcastedTxHash(res.result) return } @@ -62,20 +62,20 @@ const BroadcastTransaction = () => { getTransactionList({ walletID: wallet.id, pageNo: 1, - pageSize: 1, + pageSize: 10, keywords: res.result, }).then(txRes => { if (isSuccessResponse(txRes) && txRes.result.items.length) { navigate(RoutePath.History) } else { - setBroadCastedTxHash(res.result) + setBroadcastedTxHash(res.result) } }) } } else { setErrMsg(typeof res.message === 'string' ? res.message : res.message.content || '') } - }, [wallet, json, navigate, dispatch, broadcastedTxHash, setBroadCastedTxHash]) + }, [wallet, json, navigate, dispatch, broadcastedTxHash, setBroadcastedTxHash]) return ( <>