diff --git a/frontend/src/components/MakerPage.js b/frontend/src/components/MakerPage.js index dfae6a6c..bb9464f8 100644 --- a/frontend/src/components/MakerPage.js +++ b/frontend/src/components/MakerPage.js @@ -42,7 +42,7 @@ class MakerPage extends Component { maxTradeSats: this.defaultMaxTradeSats, maxBondlessSats: this.defaultMaxBondlessSats, is_explicit: false, - type: 0, + type: null, currency: this.defaultCurrency, currencyCode: this.defaultCurrencyCode, payment_method: this.defaultPaymentMethod, @@ -275,7 +275,7 @@ class MakerPage extends Component { {t("Buy or Sell Bitcoin?")} - + } checkedIcon={}/>} @@ -816,7 +816,8 @@ class MakerPage extends Component { {/* conditions to disable the make button */} - {(this.state.amount == null & (this.state.enableAmountRange == false || this.state.loadingLimits) || + {(this.state.type == null || + this.state.amount == null & (this.state.enableAmountRange == false || this.state.loadingLimits) || this.state.enableAmountRange & (this.minAmountError() || this.maxAmountError()) || this.state.amount <= 0 & !this.state.enableAmountRange || (this.state.is_explicit & (this.state.badSatoshis != null || this.state.satoshis == null)) || @@ -843,10 +844,14 @@ class MakerPage extends Component { : ""}
- {this.state.type==0 ? - t("Create a BTC buy order for ") + {this.state.type==null ? + t("Create an order for ") : - t("Create a BTC sell order for ") + (this.state.type==0 ? + t("Create a BTC buy order for ") + : + t("Create a BTC sell order for ") + ) } {this.state.enableAmountRange & this.state.minAmount != null? this.state.minAmount+"-"+this.state.maxAmount diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 1928bc97..a856e469 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -60,6 +60,7 @@ "You must fill the order correctly":"You must fill the order correctly", "Create Order":"Create Order", "Back":"Back", + "Create an order for ":"Create an order for ", "Create a BTC buy order for ":"Create a BTC buy order for ", "Create a BTC sell order for ":"Create a BTC sell order for ", " of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis", @@ -170,7 +171,10 @@ "Taker fee":"Taker fee", "Number of public BUY orders":"Number of public BUY orders", "Number of public SELL orders":"Number of public SELL orders", - + "Your last order #{{orderID}}":"Your last order #{{orderID}}", + "Inactive order":"Inactive order", + "You do not have previous orders":"You do not have previous orders", + "ORDER PAGE - OrderPage.js": "Order details page", "Order Box":"Order Box", diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json index 36e37bcb..3106daf4 100644 --- a/frontend/src/locales/es.json +++ b/frontend/src/locales/es.json @@ -60,8 +60,9 @@ "You must fill the order correctly": "Debes rellenar la orden correctamente", "Create Order":"Crear orden", "Back":"Volver", - "Create a BTC buy order for ": "Crear orden de compra de bitcoin por ", - "Create a BTC sell order for ": "Crear orden de venta de bitcoin por ", + "Create an order for ":"Crear una orden por ", + "Create a BTC buy order for ": "Crear orden de compra de BTC por ", + "Create a BTC sell order for ": "Crear orden de venta de BTC por ", " of {{satoshis}} Satoshis": " de {{satoshis}} Sats", " at market price":" a precio de mercado", " at a {{premium}}% premium":" con una prima del {{premium}}%",