Skip to content

Commit

Permalink
Fix faulty null checks (#1340)
Browse files Browse the repository at this point in the history
* fix faulty null checks

* update packages
  • Loading branch information
rekmarks authored Feb 12, 2020
1 parent 03f1731 commit bd5eeaa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/components/UI/TypedSign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class TypedSign extends PureComponent {
renderTypedMessageV3 = obj =>
Object.keys(obj).map(key => (
<View style={styles.message} key={key}>
{typeof obj[key] === 'object' ? (
{obj[key] && typeof obj[key] === 'object' ? (
<View>
<Text style={[styles.messageText, styles.msgKey]}>{key}:</Text>
<View>{this.renderTypedMessageV3(obj[key])}</View>
Expand Down
2 changes: 1 addition & 1 deletion app/util/blockies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
exports && typeof exports === 'object' && typeof module !== 'undefined'
? factory(exports)
: typeof define === 'function' && define.amd
? define(['exports'], factory)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dnode": "1.2.2",
"eth-contract-metadata": "1.11.0",
"eth-ens-namehash": "2.0.8",
"eth-json-rpc-errors": "^2.0.1",
"eth-json-rpc-errors": "^2.0.2",
"eth-json-rpc-filters": "4.1.1",
"eth-json-rpc-infura": "4.0.0",
"eth-json-rpc-middleware": "4.3.0",
Expand Down Expand Up @@ -179,7 +179,7 @@
"jest": "24.5.0",
"jest-serializer": "24.4.0",
"lint-staged": "8.1.5",
"metamask-mobile-provider": "^1.0.1",
"metamask-mobile-provider": "^1.0.2",
"metro": "0.55.0",
"metro-react-native-babel-preset": "0.53.0",
"octonode": "0.9.5",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3729,10 +3729,10 @@ eth-json-rpc-errors@^2.0.0:
dependencies:
fast-safe-stringify "^2.0.6"

eth-json-rpc-errors@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/eth-json-rpc-errors/-/eth-json-rpc-errors-2.0.1.tgz#e7a4c4e3c76913dff26dbc021966c72b2822e0f2"
integrity sha512-ldF9fdzkdHAgTWmqh/bgHi7uH+8icAyjcEdFOBGD32zTWd7J66VDo0rBaiaQPowXitiyAcs1R23Mje1gkdIofA==
eth-json-rpc-errors@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/eth-json-rpc-errors/-/eth-json-rpc-errors-2.0.2.tgz#c1965de0301fe941c058e928bebaba2e1285e3c4"
integrity sha512-uBCRM2w2ewusRHGxN8JhcuOb2RN3ueAOYH/0BhqdFmQkZx5lj5+fLKTz0mIVOzd4FG5/kUksCzCD7eTEim6gaA==
dependencies:
fast-safe-stringify "^2.0.6"

Expand Down Expand Up @@ -7109,10 +7109,10 @@ merkle-patricia-tree@^2.1.2, merkle-patricia-tree@^2.3.2:
rlp "^2.0.0"
semaphore ">=1.0.1"

metamask-mobile-provider@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/metamask-mobile-provider/-/metamask-mobile-provider-1.0.1.tgz#d8387f29f907c0ea48f1e344b0a034fb28dc4d01"
integrity sha512-64NIPJhnswFV+tCQN8XURs2zxQWBFMcp/RgVLpWioncc2Ahj0AyR5E6+gHKT/jS1PjR/gs18p83C8keRqPNtCg==
metamask-mobile-provider@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/metamask-mobile-provider/-/metamask-mobile-provider-1.0.2.tgz#b1d8e73c7ae816e6c22140ad4fa4010a80b0902c"
integrity sha512-2u/iAPTDDXfr262G8jmUNCQWPviSfoaVQ4UzJ1Z/tO9GiaIRsXwWFHip3mWTiC4Kglss455xf2J7u/08CP3RHg==

methods@^1.1.1:
version "1.1.2"
Expand Down

0 comments on commit bd5eeaa

Please sign in to comment.