+
- {planMode === 'today' && (
+ {planMode === 'today' && !hasTodayPlan && (
{isPending ? (
@@ -711,7 +718,7 @@ export function PlanTask({
)}
)}
- {planMode === 'tomorow' && (
+ {planMode === 'tomorow' && !hasPlanForTomorrow && (
{isPending ? (
@@ -763,7 +770,7 @@ export function RemoveTaskFromPlan({ task, plan, member }: { task: ITeamTask; me
);
}
-export function RemoveManyTaskFromPlan({ task, member }: { task: ITeamTask; member?: OT_Member; }) {
+export function RemoveManyTaskFromPlan({ task, member }: { task: ITeamTask; member?: OT_Member }) {
// const t = useTranslations();
const { removeManyTaskPlans } = useDailyPlan();
const data: IRemoveTaskFromManyPlans = { plansIds: [], employeeId: member?.employeeId };