mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 07:28:07 +01:00
FIX: Payload access
This commit is contained in:
parent
ab9d4a55c8
commit
4cfe6845f2
1 changed files with 16 additions and 16 deletions
4
App.js
4
App.js
|
@ -65,7 +65,7 @@ const App = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const fetchWalletTransactionsInReceivedNotification = payload => {
|
const fetchWalletTransactionsInReceivedNotification = payload => {
|
||||||
payload = payload.aps.content;
|
if (payload) {
|
||||||
let wallet;
|
let wallet;
|
||||||
switch (+payload.type) {
|
switch (+payload.type) {
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -77,11 +77,11 @@ const App = () => {
|
||||||
wallet = wallets.find(w => w.weOwnTransaction(payload.txid || payload.hash));
|
wallet = wallets.find(w => w.weOwnTransaction(payload.txid || payload.hash));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wallet) {
|
if (wallet) {
|
||||||
const walletID = wallet.getID();
|
const walletID = wallet.getID();
|
||||||
fetchAndSaveWalletTransactions(walletID);
|
fetchAndSaveWalletTransactions(walletID);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const openSettings = () => {
|
const openSettings = () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue