mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
Fix bug in donation payment to lightning address.
This commit is contained in:
@@ -708,8 +708,8 @@ const handleTransferTaskResult = async (result: TransactionTaskResult) => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Success path
|
// Success path
|
||||||
if (isInvoiceDonation && donationForName) {
|
if (isInvoiceDonation && donationForName &&
|
||||||
// Update profile donation counter
|
(status === TransactionStatus.COMPLETED || status === TransactionStatus.RECOVERED)) {
|
||||||
await walletProfileStore.updateName(donationForName);
|
await walletProfileStore.updateName(donationForName);
|
||||||
|
|
||||||
setResultModalInfo({
|
setResultModalInfo({
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ export const transferTask = async function (
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
transactionData.push({
|
transactionData.push({
|
||||||
status: TransactionStatus.ERROR,
|
status: TransactionStatus.ERROR,
|
||||||
error: WalletUtils.formatError(e),
|
error: WalletUtils.formatError(e),
|
||||||
createdAt: new Date()
|
createdAt: new Date()
|
||||||
})
|
})
|
||||||
@@ -449,6 +449,8 @@ export const transferTask = async function (
|
|||||||
status: TransactionStatus.ERROR,
|
status: TransactionStatus.ERROR,
|
||||||
data: JSON.stringify(transactionData),
|
data: JSON.stringify(transactionData),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
taskResult.error = WalletUtils.formatError(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user