Skip to content

Commit

Permalink
fix: Workshop switch visible for admins (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub authored Oct 4, 2023
1 parent 7091320 commit f2c7582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/ui/src/app/Workshops/WorkshopScheduleAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const WorkshopScheduleAction: React.FC<{
minMaxProps.maxDate = null;
}
const noAutoStopSwitchIsVisible =
action === 'stop' && autoDestroyTime && (maxDate === null || maxDate >= autoDestroyTime);
action === 'stop' && autoDestroyTime && (minMaxProps.maxDate === null || minMaxProps.maxDate >= autoDestroyTime);

return (
<Form isHorizontal>
Expand Down

0 comments on commit f2c7582

Please sign in to comment.