Fakultas Ilmu Komputer UI

Commit d21f9c3d authored by Wulan Mantiri's avatar Wulan Mantiri
Browse files

Fix returning users and navigation logic

parent 3b8d062e
......@@ -15,11 +15,7 @@ import { Props } from './types';
const ReadOnlyDietRecommendation: FC<Props> = ({ children, data }) => {
const url = API_BASE_URL + data?.client_plan_meal;
const { download, fileName } = useDownloadFiles(
url,
'rencana makan',
FileType.PDF,
);
const { download, fileName } = useDownloadFiles(url, '', FileType.PDF);
const hasValues = (obj: DietRecommendationResponse) =>
[obj.client_plan_meal, obj.nutritional_advice, obj.lifestyle_advice].reduce(
......
......@@ -31,6 +31,7 @@ export interface AuthUserResponse extends User {
transaction_status: TransactionStatus | null;
is_finished_onboarding: boolean;
cart_id: number | null;
all_carts_are_expired: boolean;
nutritionist: {
full_name_and_degree: string;
phone_number: string | null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment