Skip to content

Commit

Permalink
Fixes #3079 - adds a guard to profile.currency to ensure profile is d…
Browse files Browse the repository at this point in the history
…efined
  • Loading branch information
spencern committed Oct 10, 2017
1 parent a839871 commit 3e38f21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const composer = (props, onData) => {
const user = Accounts.findOne({
_id: Meteor.userId()
});
const profileCurrency = user.profile && user.profile.currency;
const profileCurrency = user && user.profile && user.profile.currency;

if (Match.test(shop, Object) && shop.currency) {
const locale = Reaction.Locale.get();
Expand Down

0 comments on commit 3e38f21

Please sign in to comment.