From dc9075eb7186de1b9fb17d41e78691221f32eab5 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 24 Apr 2019 09:34:45 -0400 Subject: [PATCH] fix: fix profile being undefined on page reload --- src/actions/delegates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/delegates.js b/src/actions/delegates.js index cb6acf3..121bd3a 100644 --- a/src/actions/delegates.js +++ b/src/actions/delegates.js @@ -23,7 +23,7 @@ const createDelegate = (newDelegate, delegateInfo, pledge, profile, idx) => { const delegateRecordExists = (profile, pledge, idx, existing) => { const record = existing.find(delegate => { const { delegateIndex } = delegate - if ( + if (profile && profile.id === delegate.profile.id && pledge.idPledge === delegate.idPledge && idx === delegateIndex