Skip to content

Commit

Permalink
Merge pull request #117 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #PS-1549 chore: weekday selection corrected
  • Loading branch information
itsvick authored Aug 9, 2024
2 parents 1dbba18 + 4a69366 commit 0a6f57b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,13 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
id: string | number | undefined,
newSelectedDays: string[]
) => {
if (id) {
setSessionBlocks(
sessionBlocks.map((block) =>
block?.id === id
? { ...block, selectedWeekDays: newSelectedDays }
: block
)
);
}
setSessionBlocks(
sessionBlocks.map((block) =>
block?.id === id
? { ...block, selectedWeekDays: newSelectedDays }
: block
)
);
};

const handleAddSession = () => {
Expand Down

0 comments on commit 0a6f57b

Please sign in to comment.