mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
Fix tab switching
This commit is contained in:
1 parent
048b93186a
commit
3696d7c46e
1 file changed
+1
-4
@@ -76,15 +76,12 @@ export default class App extends React.Component<{}, State> {
|
||||
let index = 0;
|
||||
|
||||
if (subscribed) {
|
||||
index = chains.indexOf(subscribed);
|
||||
index = (chains.indexOf(subscribed) + 1) % chains.length;
|
||||
|
||||
// Do nothing if it's the same chain
|
||||
if (chains[index] === subscribed) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Go to next tab
|
||||
index = (index + 1) % chains.length;
|
||||
}
|
||||
|
||||
this.connection.then((connection) => {
|
||||
|
||||
Reference in new issue
Block a user