Remove headers
This commit is contained in:
parent
8c199b847e
commit
4d2f433f6c
1 changed files with 9 additions and 15 deletions
|
|
@ -33,9 +33,6 @@ const SummonGrid = (props: Props) => {
|
||||||
const accountData: AccountCookie = cookie
|
const accountData: AccountCookie = cookie
|
||||||
? JSON.parse(cookie as string)
|
? JSON.parse(cookie as string)
|
||||||
: null
|
: null
|
||||||
const headers = accountData
|
|
||||||
? { headers: { Authorization: `Bearer ${accountData.token}` } }
|
|
||||||
: {}
|
|
||||||
|
|
||||||
// Localization
|
// Localization
|
||||||
const { t } = useTranslation('common')
|
const { t } = useTranslation('common')
|
||||||
|
|
@ -112,19 +109,16 @@ const SummonGrid = (props: Props) => {
|
||||||
if (summon.uncap.ulb) uncapLevel = 5
|
if (summon.uncap.ulb) uncapLevel = 5
|
||||||
else if (summon.uncap.flb) uncapLevel = 4
|
else if (summon.uncap.flb) uncapLevel = 4
|
||||||
|
|
||||||
return await api.endpoints.summons.create(
|
return await api.endpoints.summons.create({
|
||||||
{
|
summon: {
|
||||||
summon: {
|
party_id: partyId,
|
||||||
party_id: partyId,
|
summon_id: summon.id,
|
||||||
summon_id: summon.id,
|
position: position,
|
||||||
position: position,
|
main: position == -1,
|
||||||
main: position == -1,
|
friend: position == 6,
|
||||||
friend: position == 6,
|
uncap_level: uncapLevel,
|
||||||
uncap_level: uncapLevel,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
headers
|
})
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function storeGridSummon(gridSummon: GridSummon) {
|
function storeGridSummon(gridSummon: GridSummon) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue