In CheckReward function within the loop there are 3 checks with the following condition:
if ( ! ( data.isForRent && data.clientPaidUpTo > data.roundID ) ) {
If data.isForRent = false then the if check above will always evaluate to true, no matter what are the values of data.clientPaidUpTo and data.roundID. It does not seem right...
In
CheckReward
function within the loop there are 3 checks with the following condition:if ( ! ( data.isForRent && data.clientPaidUpTo > data.roundID ) ) {
If
data.isForRent = false
then the if check above will always evaluate totrue
, no matter what are the values ofdata.clientPaidUpTo
anddata.roundID
. It does not seem right...