text: export const convertToValidPrice = price => {
    if (price === "Free") {
      return "0.00";
    } else if (!price.split(".")[0]) {
      return "0" + price;
    }
    return price;
  };
  
  export const findSportNameBySportId = (id, sports) => {
    return sports?.find(sport => sport.id === id)?.name;
  };
  
  export const findIdBySportName = (name, sports) => {
    return sports?.find(sport => sport.name === name)?.id;
  };
  