refactor: use const
This commit is contained in:
parent
d13e6f1897
commit
908d672cf2
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ const redirectUri = `${window.location.origin}/`;
|
|||
|
||||
// Make a POST request and parse the response as JSON
|
||||
const sendPostRequest = async (url, params) => {
|
||||
let body = Object.keys(params)
|
||||
const body = Object.keys(params)
|
||||
.map(key => `${key}=${params[key]}`)
|
||||
.join("&");
|
||||
const options = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue