Fakultas Ilmu Komputer UI

Commit 32da273e authored by Wulan Mantiri's avatar Wulan Mantiri
Browse files

Merge branch 'final-fix' into 'staging'

Fix returning users and navigation logic

See merge request !84
parents 3b8d062e d21f9c3d
Pipeline #84201 passed with stages
in 31 minutes and 35 seconds
......@@ -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