fix: changed the key from owned_by to owned_by_id in active cycle header (#131)

This commit is contained in:
guru_sainath
2024-02-23 19:48:56 +05:30
committed by GitHub
parent b52fe9b4a7
commit 2c6b5d6e00

View File

@@ -21,7 +21,7 @@ export const ActiveCycleHeader: FC<ActiveCycleHeaderProps> = (props) => {
const { cycle, workspaceSlug, projectId } = props;
// store
const { getUserDetails } = useMember();
const cycleOwnerDetails = cycle ? getUserDetails(cycle.owned_by) : undefined;
const cycleOwnerDetails = cycle && cycle.owned_by_id ? getUserDetails(cycle.owned_by_id) : undefined;
const daysLeft = findHowManyDaysLeft(cycle.end_date) ?? 0;
const currentCycleStatus = cycle.status.toLocaleLowerCase() as TCycleGroups;