function setValidTick(inputContainer) {
  const errorContainer = inputContainer.querySelector('.sprk-b-ErrorContainer');

  if (errorContainer) {
    errorContainer.innerHTML = '';
  }
}

export { setValidTick as default };

const setValidTick = (inputContainer) => {
  const errorContainer = inputContainer.querySelector('.sprk-b-ErrorContainer');

  if (errorContainer) {
    errorContainer.innerHTML = '';
  }
}

export { setValidTick as default };

Update setValidTick to be an arrow function