Fix: close connections correctly (#29)

This commit is contained in:
Fndroid 2020-04-23 17:25:58 +08:00 committed by GitHub
parent 17b24c4f49
commit 5dc94c0120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ export function Group (props: GroupProps) {
const list: string[] = [] const list: string[] = []
const snapshot = await getConnections() const snapshot = await getConnections()
for (const connection of snapshot.data.connections) { for (const connection of snapshot.data.connections) {
if (connection.chains.includes(name)) { if (connection.chains.includes(props.config.name)) {
list.push(connection.id) list.push(connection.id)
} }
} }