Open vang1ong7ang opened 1 year ago
fix the account (or network) switch bug:
when activeIndex ( orchainId) is 0 the variable newActiveIndex (or newChainId) is not set properly
activeIndex
chainId
0
newActiveIndex
newChainId
to reproduce the bug:
index = 0
why is the repo maintainer so lazy, this is a great PR
fix the account (or network) switch bug:
when
activeIndex
( orchainId
) is0
the variablenewActiveIndex
(ornewChainId
) is not set properly