mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-12 04:24:23 +00:00
fix: fix profile being undefined on page reload
This commit is contained in:
parent
5b48ad3d58
commit
dc9075eb71
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user