mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 11:18:24 +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 {
|
||||
// Success path
|
||||
if (isInvoiceDonation && donationForName) {
|
||||
// Update profile donation counter
|
||||
if (isInvoiceDonation && donationForName &&
|
||||
(status === TransactionStatus.COMPLETED || status === TransactionStatus.RECOVERED)) {
|
||||
await walletProfileStore.updateName(donationForName);
|
||||
|
||||
setResultModalInfo({
|
||||
|
||||
@@ -440,7 +440,7 @@ export const transferTask = async function (
|
||||
})
|
||||
} else {
|
||||
transactionData.push({
|
||||
status: TransactionStatus.ERROR,
|
||||
status: TransactionStatus.ERROR,
|
||||
error: WalletUtils.formatError(e),
|
||||
createdAt: new Date()
|
||||
})
|
||||
@@ -449,6 +449,8 @@ export const transferTask = async function (
|
||||
status: TransactionStatus.ERROR,
|
||||
data: JSON.stringify(transactionData),
|
||||
})
|
||||
|
||||
taskResult.error = WalletUtils.formatError(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user