pramod_Task#207 Assign button hide and completedWork not editable if , > 0 #92

Merged
vikas.nale merged 8 commits from pramod_Task#207 into Issue_May_2W 2025-05-10 10:42:00 +00:00
Showing only changes of commit 3a84d2f4c9 - Show all commits

View File

@ -38,8 +38,10 @@ export const markAttendance = createAsyncThunk(
const response = await AttendanceRepository.markAttendance( newRecordAttendance );
return response.data;
} catch (error) {
return thunkAPI.rejectWithValue(error.message);
} catch ( error )
{
const message = error?.response?.data?.message || error.message || "Error Occured During Api Call";
return thunkAPI.rejectWithValue(message);
}
}
);