Files
sure/app/javascript/services/currencies_service.js
Thibaut Gorioux 5be1ced19e Shared money input should respond to change in currency (#654)
* Add step method to currency

* Change amount placeholder and step, when currency select change

* Lint

* Add test with auth

* Extract request to specific service
2024-04-20 08:07:06 -04:00

6 lines
131 B
JavaScript

export class CurrenciesService {
get(id) {
return fetch(`/currencies/${id}.json`).then((response) => response.json());
}
}