From 26337121de6870066435a2459b616cd6ce91f966 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Sat, 17 Jun 2023 10:00:07 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20validace=20p=C5=99=C3=ADtomnosti=20QR?= =?UTF-8?q?=20k=C3=B3du?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 2 +- client/src/Types.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 7e9d3b6..0d9dbd7 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -321,7 +321,7 @@ function App() { /> { - data.pizzaDay.state === State.DELIVERED && myOrder && + data.pizzaDay.state === State.DELIVERED && myOrder?.hasQr &&

QR platba

Částka: {myOrder.totalPrice} Kč
diff --git a/client/src/Types.tsx b/client/src/Types.tsx index aa23b5b..cbfe068 100644 --- a/client/src/Types.tsx +++ b/client/src/Types.tsx @@ -28,6 +28,7 @@ export interface Order { customer: string, // jméno objednatele pizzaList: PizzaOrder[], // seznam objednaných pizz totalPrice: number, // celková cena všech objednaných pizz a krabic + hasQr?: boolean, // zda je pro objednávku vygenerován QR kód pro platbu } export interface Choices {