Skip to content

Commit

Permalink
fixed bugs pt1
Browse files Browse the repository at this point in the history
  • Loading branch information
mialana committed Oct 1, 2023
1 parent 80b7fe7 commit f701571
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const AddScheduleFriendsModalInterior = ({
const [errorObj, setErrorObj] = useState({ message: "", error: false });

useEffect(() => {
console.log(existingData)
validateInput(
user,
userInput,
Expand Down
2 changes: 1 addition & 1 deletion frontend/plan/components/modals/model_content_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const generateModalInterior = (reduxState) => {
return (
<NameScheduleModalInterior
buttonName="Rename"
usedScheduleNames={Object.keys(
existingData={Object.keys(
reduxState.schedule.schedules
)}
mode="schedule"
Expand Down
22 changes: 8 additions & 14 deletions frontend/plan/components/schedule/ScheduleSelectorDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,20 +466,14 @@ const ScheduleSelectorDropdown = ({
<div className="info">
{hasFriends ? (
<div>
{primaryScheduleId !== "-1" ? (
<div className="friends">
Friends
</div>
) : (
<div>
Click{" "}
<i
className="fa fa-user"
aria-hidden="true"
/>{" "}
to set your shared schedule
</div>
)}
<div>
Click{" "}
<i
className="fa fa-user"
aria-hidden="true"
/>{" "}
to set your shared schedule
</div>
</div>
) : (
"Add a friend to share a schedule"
Expand Down

0 comments on commit f701571

Please sign in to comment.