Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Configure/Configure.js
Show First 20 Lines • Show All 1,046 Lines • ▼ Show 20 Lines | const Configure = () => { | ||||
}; | }; | ||||
const addSavedWalletToContact = wallet => { | const addSavedWalletToContact = wallet => { | ||||
if (!wallet) { | if (!wallet) { | ||||
return; | return; | ||||
} | } | ||||
// initialise saved wallet name and address to state for confirmation modal | // initialise saved wallet name and address to state for confirmation modal | ||||
setManualContactName(wallet.name); | setManualContactName(wallet.name); | ||||
setManualContactAddress( | setManualContactAddress(wallet.paths.get(1899).address); | ||||
wallet.paths.find(pathInfo => pathInfo.path === 1899).address, | |||||
); | |||||
setSavedWalletContactModal(true); | setSavedWalletContactModal(true); | ||||
}; | }; | ||||
const handleManualAddContactModalOk = async () => { | const handleManualAddContactModalOk = async () => { | ||||
// if either inputs are invalid then go no further | // if either inputs are invalid then go no further | ||||
if (manualContactNameError || manualContactAddressError) { | if (manualContactNameError || manualContactAddressError) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines |