From 72bcc71631bbf4dc0bbdd452a738fbe11a407585 Mon Sep 17 00:00:00 2001
From: meskio <meskio@sindominio.net>
Date: Mon, 4 Jan 2021 17:38:37 +0100
Subject: [PATCH] Change the wording if we update the order

---
 src/order/PurchaseOrder.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/order/PurchaseOrder.js b/src/order/PurchaseOrder.js
index 7d995ba..bfefa6d 100644
--- a/src/order/PurchaseOrder.js
+++ b/src/order/PurchaseOrder.js
@@ -118,7 +118,9 @@ class PurchaseOrder extends React.Component {
         {formEntries}
         <Form.Group as={Row}>
           <Col className="text-right">
-            <Button type="submit">Realizar pedido</Button>
+            <Button type="submit">
+              {this.props.purchase ? "Actualizar" : "Realizar"} pedido
+            </Button>
           </Col>
           <Col>
             <h3>Total: {printMoney(this.state.total)}€</h3>
-- 
GitLab