Skip to content

Commit 4532942

Browse files
author
Harsh Dev Pathak
committed
chore: Updated transaction slice getting correct data values
1 parent ffa7b06 commit 4532942

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

package-lock.json

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "jest"
1414
},
1515
"dependencies": {
16-
"@fedimint/core-web": "^0.0.0-dev-test3-8f5bd196fa69309b9166fe9e76f076275c1210af",
16+
"@fedimint/core-web": "0.0.0-dev-test3-e244a985452c5a2db483bcb91a1f5d6ff2267bda",
1717
"@mempool/mempool.js": "^3.0.0",
1818
"@noble/hashes": "^1.8.0",
1919
"@nostr-dev-kit/ndk": "^2.14.32",

src/pages/Invoices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default function Invoices() {
124124
setTimeout(() => {
125125
unsubscribe?.();
126126
}, 600000);
127-
} else if (transaction.kind === 'ln' && transaction.type === 'send') {
127+
} else if (transaction.kind === 'ln' && transaction.type === 'pay') {
128128
const { invoice, operationId, timestamp } = transaction;
129129

130130
const unsubscribe = wallet.lightning.subscribeLnPay(

src/redux/slices/TransactionSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const fetchTransactions = createAsyncThunk<
5656
amountMsats = (tx as EcashTransaction).amountMsats / 1000;
5757
outcome = (tx as EcashTransaction).outcome?.toLowerCase() ?? null;
5858
} else if (tx.kind === 'wallet') {
59-
amountMsats = (tx as WalletTransaction).amountMsats;
59+
amountMsats = (tx as WalletTransaction).amountSats;
6060
outcome = (tx as WalletTransaction).outcome?.toLowerCase() ?? null;
6161
onchainAddress = (tx as WalletTransaction).onchainAddress;
6262
fee = (tx as WalletTransaction).fee;

0 commit comments

Comments
 (0)