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 {