Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Use text dataType for getFiatAtTime #35

Closed

Conversation

GregDracoulis
Copy link

Using JSON as the dataType causes problems because the server transmits amounts back with commas if they are above 999 (e.g. 2,105.83). This messes up the JSON parsing and causes $.ajax to throw an error even if the request comes back correctly and with the expected data.

Noticed this when converting many BTC wallet amounts to fiat currency.

Greg Dracoulis added 3 commits September 10, 2015 20:20
Using JSON as the data type causes problems because the server
transmits amounts back *with commas* if they are above 999 (e.g.
`2,105.83`). This messes up the JSON parsing and causes `$.ajax` to
throw an error even if the request comes back correctly and with the
expected data.
@Sjors
Copy link
Contributor

Sjors commented Sep 11, 2015

Pending a fix on the backend, this could be a good solution.

@sha49 sha49 closed this Dec 18, 2015
jtormey added a commit that referenced this pull request Aug 16, 2017
@etherx-dev etherx-dev mentioned this pull request Mar 13, 2021
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants