Exclude contract creator in both places

This commit is contained in:
Ian Philips 2022-07-14 09:32:50 -06:00
parent 4eba3c8124
commit deaa595f07

View File

@ -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])
// Update contract unique bettors