fix string in selectedTab comparison

This commit is contained in:
Ramón Souza 2022-12-09 15:36:44 -03:00
parent 6b6f3f4775
commit 03e6835565

View File

@ -338,7 +338,7 @@ class ConnectionStatusComponent extends PureComponent {
if (isConnectionStatusEmpty(connectionStatus)) return this.renderEmpty();
let connections = connectionStatus;
if (selectedTab === '2') {
if (selectedTab === 2) {
connections = connections.filter(conn => conn.you);
if (isConnectionStatusEmpty(connections)) return this.renderEmpty();
}