mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
Update ElectrumSettings.tsx
This commit is contained in:
parent
2546f9015a
commit
f1bc844977
1 changed files with 0 additions and 14 deletions
|
@ -152,18 +152,6 @@ const ElectrumSettings: React.FC = () => {
|
|||
}
|
||||
}, [server]);
|
||||
|
||||
const serverExists = useCallback(
|
||||
(value: ElectrumServerItem) => {
|
||||
for (const s of serverHistory) {
|
||||
if (`${s.host}:${s.tcp}:${s.ssl}` === `${value.host}:${value.tcp}:${value.ssl}`) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
[serverHistory],
|
||||
);
|
||||
|
||||
const save = useCallback(
|
||||
async (v?: ElectrumServerItem) => {
|
||||
Keyboard.dismiss();
|
||||
|
@ -437,8 +425,6 @@ const ElectrumSettings: React.FC = () => {
|
|||
};
|
||||
|
||||
const preferredServerIsEmpty = !host || (!port && !sslPort);
|
||||
const isServerAlreadySaved =
|
||||
suggestedServers.some(s => s.host === host && (s.tcp === port || s.ssl === sslPort)) || serverExists({ host, tcp: port, ssl: sslPort });
|
||||
|
||||
const renderElectrumSettings = () => {
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue