mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
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
This commit is contained in:
5
app/javascript/services/currencies_service.js
Normal file
5
app/javascript/services/currencies_service.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export class CurrenciesService {
|
||||
get(id) {
|
||||
return fetch(`/currencies/${id}.json`).then((response) => response.json());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user