mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
Update screen/settings/ElectrumSettings.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
57b74f10e2
commit
3932f4f90d
@ -154,7 +154,12 @@ const ElectrumSettings: React.FC = () => {
|
|||||||
|
|
||||||
const serverExists = useCallback(
|
const serverExists = useCallback(
|
||||||
(value: ElectrumServerItem) => {
|
(value: ElectrumServerItem) => {
|
||||||
return Array.from(serverHistory).some(s => `${s.host}:${s.tcp}:${s.ssl}` === `${value.host}:${value.tcp}:${value.ssl}`);
|
for (const s of serverHistory) {
|
||||||
|
if (`${s.host}:${s.tcp}:${s.ssl}` === `${value.host}:${value.tcp}:${value.ssl}`) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
[serverHistory],
|
[serverHistory],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user