Exclude contract creator in both places
This commit is contained in:
parent
4eba3c8124
commit
deaa595f07
|
@ -82,7 +82,9 @@ const updateUniqueBettorsAndGiveCreatorBonus = async (
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const isNewUniqueBettor = !previousUniqueBettorIds.includes(bettorId)
|
const isNewUniqueBettor =
|
||||||
|
!previousUniqueBettorIds.includes(bettorId) &&
|
||||||
|
bettorId !== contract.creatorId
|
||||||
|
|
||||||
const newUniqueBettorIds = uniq([...previousUniqueBettorIds, bettorId])
|
const newUniqueBettorIds = uniq([...previousUniqueBettorIds, bettorId])
|
||||||
// Update contract unique bettors
|
// Update contract unique bettors
|
||||||
|
|
Loading…
Reference in New Issue
Block a user