Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
fix(sdk): cast network ids to string to compare
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaWang committed Feb 12, 2020
1 parent 5e96d23 commit 9899c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension/src/utils/network/getNetworkName.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import networks from '~/config/networks';

export default function getNetworkName(networkId) {
let networkKey = Object.keys(networks)
.find(name => networks[name].id === networkId);
.find(name => `${networks[name].id}` === `${networkId}`);
if (!networkKey) {
networkKey = 'GANACHE';
}
Expand Down

0 comments on commit 9899c4c

Please sign in to comment.