Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
1.4 kB
2
Indexable
Never
// paymentStatus ? (s += `;status==${paymentStatus.value}`) : null;
    if (paymentStatus) {
      if (s) {
        s += `;status==${paymentStatus.value}`;
      } else {
        s += `status==${paymentStatus.value}`;
      }
    } else {
      null;
    }

    // institution && institution.id !== 'institution.all' ? (s += `;institutionId==${institution.id}`) : null;
    if (institution && institution.id !== 'institution.all') {
      if (s) {
        s += `;institutionId==${institution.id}`;
      } else {
        s += `institutionId==${institution.id}`;
      }
    } else {
      null;
    }

    // studentCountry ? (s += `;studentCountry==${studentCountry.code}`) : null;
    if (studentCountry) {
      if (s) {
        s += `;studentCountry==${studentCountry.code}`;
      } else {
        s += `studentCountry==${studentCountry.code}`;
      }
    } else {
      null;
    }

    // studentName ? (s += `;studentId==${studentName.id}`) : null;
    if (studentName) {
      if (s) {
        s += `;studentId==${studentName.id}`;
      } else {
        s += `studentId==${studentName.id}`;
      }
    } else {
      null;
    }

    // agentName ? (s += `;agent_id==${agentName.id}`) : null;
    if (agentName) {
      if (s) {
        s += `;agent_id==${agentName.id}`;
      } else {
        s += `agent_id==${agentName.id}`;
      }
    } else {
      null;
    }