parseInt
This commit is contained in:
parent
8bcc43905a
commit
0745ccf995
7 changed files with 15 additions and 15 deletions
|
|
@ -109,7 +109,7 @@ export const promisedRequest = async ({
|
|||
.get('content-type')
|
||||
.split(';')
|
||||
.map((x) => x.toLowerCase().trim())
|
||||
const contentLength = parseInt(response.headers.get('content-length'))
|
||||
const contentLength = Number.parseInt(response.headers.get('content-length'))
|
||||
if (contentLength === 0) return null
|
||||
|
||||
switch (contentType) {
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ export const postStatus = ({
|
|||
})
|
||||
if (pollOptions.some((option) => option !== '')) {
|
||||
const normalizedPoll = {
|
||||
expires_in: parseInt(poll.expiresIn, 10),
|
||||
expires_in: Number.parseInt(poll.expiresIn, 10),
|
||||
multiple: poll.multiple,
|
||||
}
|
||||
Object.keys(normalizedPoll).forEach((key) => {
|
||||
|
|
@ -278,7 +278,7 @@ export const editStatus = ({
|
|||
|
||||
if (pollOptions.some((option) => option !== '')) {
|
||||
const normalizedPoll = {
|
||||
expires_in: parseInt(poll.expiresIn, 10),
|
||||
expires_in: Number.parseInt(poll.expiresIn, 10),
|
||||
multiple: poll.multiple,
|
||||
}
|
||||
Object.keys(normalizedPoll).forEach((key) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue