Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Jan 13, 2024
1 parent b245751 commit 91fbcf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/neuron-ui/src/components/BroadcastTransaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const BroadcastTransaction = () => {
} = useGlobalState()

const [isBroadcasting, setIsBroadcasting] = useState(false)
const [broadcastedTxHash, setBroadCastedTxHash] = useState<string | null>('')
const [broadcastedTxHash, setBroadcastedTxHash] = useState<string | null>('')
const [t] = useTranslation()
const dispatch = useDispatch()
const [errMsg, setErrMsg] = useState('')
Expand Down Expand Up @@ -54,28 +54,28 @@ const BroadcastTransaction = () => {

if (isSuccessResponse(res)) {
if (!wallet?.id) {
setBroadCastedTxHash(res.result)
setBroadcastedTxHash(res.result)
return
}

if (res.result) {
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 (
<>
Expand Down

1 comment on commit 91fbcf7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 7513952874

Please sign in to comment.