Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Configure/Configure.js
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | const Configure = () => { | ||||
// Same here | // Same here | ||||
// TODO you need to lock UI here until this is complete | // TODO you need to lock UI here until this is complete | ||||
// Otherwise user may try to load an already-loading wallet, wreak havoc with indexedDB | // Otherwise user may try to load an already-loading wallet, wreak havoc with indexedDB | ||||
const updateSavedWalletsOnLoad = async walletToActivate => { | const updateSavedWalletsOnLoad = async walletToActivate => { | ||||
// Event("Category", "Action", "Label") | // Event("Category", "Action", "Label") | ||||
// Track number of times a different wallet is activated | // Track number of times a different wallet is activated | ||||
Event('Configure.js', 'Activate', ''); | Event('Configure.js', 'Activate', ''); | ||||
await activateWallet(walletToActivate); | await activateWallet(walletToActivate); | ||||
await updateSavedWallets(wallet); | |||||
}; | }; | ||||
async function submit() { | async function submit() { | ||||
setFormData({ | setFormData({ | ||||
...formData, | ...formData, | ||||
dirty: false, | dirty: false, | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines |