-
Notifications
You must be signed in to change notification settings - Fork 7
Open

Description
Hey there, I just noticed that the button doesn't seem to pass the amount to MM anymore. I found a little error in the function getEtherPriceIn. It sends a POST request where it should be GET. Now it works.
getEtherPriceIn(currency) {
return new Promise((resolve, reject) => {
fetch(
`https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=${currency}&sign=true`,
{
method: "GET", // <----------------------------------------
mode: "cors"
}
)
.then(response => response.json())
.then(data => {
resolve(data[currency]);
})
.catch(e => {
reject(e);
});
});
}
Metadata
Metadata
Assignees
Labels
No labels