You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reckless-Satoshi
changed the title
Read currency dict from static json into both, backend model and frontend form.
Load currency dictionary from .json into both: backend model and frontend form.
Jan 2, 2022
List of available currencies are a hack at the moment.
Would be great if the list of currencies could live in the static folder as a .json and be read from there by both:
The choices field of the Order model
https://github.com/Reckless-Satoshi/robosats/blob/9335e6abbe797e4fb281d7280da3a7114c7ef03b/api/models.py#L18-L21
The Select form in the front en MakerPage
https://github.com/Reckless-Satoshi/robosats/blob/9335e6abbe797e4fb281d7280da3a7114c7ef03b/frontend/src/components/MakerPage.js#L139-L150
Create preliminary .json file with currency number and currency code
Replace Currency IntegerChoices for the options in the currencies.json in models.py
Replace Select currency options for the options in the currencies.json in MakerPage.js
Update the logics of handleCurrencyChange to print the right currency code over the "Create Order" button.
The text was updated successfully, but these errors were encountered: