Browse Source

Merge #342

342: Display available quantity in the taker r=klochowicz a=klochowicz

It becomes important when someone else controls the offers from the maker.

This should be enough for now, but it would be nice to provide nicer validation field at some point.

Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
testing
bors[bot] 3 years ago
committed by GitHub
parent
commit
d02c5fefcb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      frontend/src/TakerApp.tsx

4
frontend/src/TakerApp.tsx

@ -153,6 +153,10 @@ export default function App() {
<Text align={"left"}>Order Price:</Text>
<Text>{order?.price}</Text>
<Text align={"left"}>Available Quantity:</Text>
<Text>
{order ? (format(order?.min_quantity) + "-" + format!(order?.max_quantity)) : "None"}
</Text>
<Text>Quantity:</Text>
<CurrencyInputField
onChange={(valueString: string) => {

Loading…
Cancel
Save