Unverified Commit 8af978fc authored by Hanwen Cheng's avatar Hanwen Cheng Committed by GitHub
Browse files

fix: parsing bug on unrecognized network key (#620)

* fix: parsing bug on unrecognized network key

* bumo version number
parent 3c5d30d3
Pipeline #93512 failed with stages
in 3 minutes and 43 seconds
......@@ -134,8 +134,8 @@ android {
minSdkVersion 18
missingDimensionStrategy 'react-native-camera', 'general'
targetSdkVersion 28
versionCode 4204
versionName "4.2.4"
versionCode 4205
versionName "4.2.5"
ndk {
abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
......
......@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.2.4</string>
<string>4.2.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4204</string>
<string>4205</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
......
{
"name": "NativeSigner",
"version": "4.2.4-beta",
"version": "4.2.5-beta",
"private": true,
"license": "GPL-3.0",
"engines": {
......
......@@ -262,12 +262,15 @@ export default class PayloadDetailsCard extends React.PureComponent<
constructor(props: PayloadDetailsCardProps) {
super(props);
const { networkKey } = this.props;
formatBalance.setDefaults({
decimals: SUBSTRATE_NETWORK_LIST[networkKey].decimals,
unit: SUBSTRATE_NETWORK_LIST[networkKey].unit
});
const isKnownNetworkKey = SUBSTRATE_NETWORK_LIST.hasOwnProperty(networkKey);
if (isKnownNetworkKey) {
formatBalance.setDefaults({
decimals: SUBSTRATE_NETWORK_LIST[networkKey].decimals,
unit: SUBSTRATE_NETWORK_LIST[networkKey].unit
});
}
this.state = {
fallback: !isKnownNetworkKey
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment