Skip to content

Commit

Permalink
fix: submitted transactions not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 20, 2022
1 parent f1567b6 commit e1e902d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/common/hooks/use-submit-stx-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export function useSubmitTransactionCallback({ loadingKey }: UseSubmitTransactio
const nonce = !replaceByFee && Number(transaction.auth.spendingCondition?.nonce);
try {
const response = await broadcastTransaction(transaction, stacksNetwork);
if (typeof response !== 'string') {
if (response.error) {
if (response.reason) toast.error(getErrorMessage(response.reason));
onClose();
setIsIdle();
} else {
const txid = `0x${response}`;
const txid = `0x${response.txid}`;
if (!externalTxid.includes(txid)) {
await setLocalTxs({
rawTx: transaction.serialize().toString('hex'),
Expand Down

0 comments on commit e1e902d

Please sign in to comment.