I checked the code, maybe this is an old merge, I've handled it using the names rather than values

if ($algoType == 'immediate' && !CRM_Utils_Array::value('manualEdit', $params) && ($params['status_id'] == $grantStatuses['Submitted'] || $params['status_id'] == $grantStatuses['Approved'] || $params['status_id'] == $grantStatuses['Awaiting Information'])) {
      $params['amount_granted'] = quickAllocate($grantProgram, $params);
    }