Skip to content

Commit

Permalink
fix faulty null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Feb 12, 2020
1 parent 03f1731 commit 976a8a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit 976a8a0

Please sign in to comment.