Important: fix to make failed hodl invoices clear from pending, fix contacts (#96)

This commit is contained in:
minibits-cash
2024-08-31 23:07:35 +02:00
parent d29ee422e3
commit 87888c3881
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.8-beta.59",
"version": "0.1.8-beta.60",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
+1 -1
View File
@@ -343,7 +343,7 @@ export const PrivateContacts = observer(function (props: {
value={newContactName}
autoCapitalize="none"
keyboardType="default"
maxLength={60}
maxLength={64}
selectTextOnFocus={true}
style={[
$contactInput,
+4 -4
View File
@@ -451,7 +451,7 @@ const _handleSpentByMintTask = async function (
log.trace('[_handleSpentByMintTask]', 'Remaining pendingByMintSecrets', remainingSecrets)
if(pendingCount > 0 && remainingSecrets.length > 0) {
if(remainingSecrets.length > 0) {
log.trace('[_handleSpentByMintTask]', 'Starting sweep of pendingByMintSecrets back to spendable wallet')
@@ -462,9 +462,9 @@ const _handleSpentByMintTask = async function (
// only move if it is from current mint
if(proofToMove && proofToMove.mintUrl === mintUrl) {
const stillPendingByMint = pendingProofs.find(p => p.secret === secret)
const isStillPendingByMint = pendingProofs.some(p => p.secret === secret)
if(!stillPendingByMint) {
if(!isStillPendingByMint) {
// move to spendable if it is not pending by mint anymore
proofsStore.removeFromPendingByMint(proofToMove as Proof)
movedProofs.push(proofToMove)
@@ -476,7 +476,7 @@ const _handleSpentByMintTask = async function (
movedToSpendableAmount = CashuUtils.getProofsAmount(movedProofs as Proof[])
if(movedProofs.length > 0) {
log.trace('[_handleSpentByMintTask]', 'Moving proofs from pending to spendable', movedProofs.length)
log.debug('[_handleSpentByMintTask]', 'Moving proofs from pendingByMint to spendable', movedProofs.length)
// Update related transactions as reverted
let relatedTransactionIds: number[] = []