@@ -44,7 +44,7 @@ export let offers: any = {};
44
44
export let skins : ISkin [ ] = [ ] ;
45
45
46
46
const extraHeaders = {
47
- "X-Riot-ClientVersion" : "" ,
47
+ "X-Riot-ClientVersion" : "43.0.1.4195386.4190634 " ,
48
48
"X-Riot-ClientPlatform" : btoa (
49
49
JSON . stringify ( {
50
50
platformType : "PC" ,
@@ -116,7 +116,7 @@ export async function getUsername(
116
116
data : [ userId ] ,
117
117
} ) ;
118
118
119
- return res . data [ 0 ] . GameName != "" ? res . data [ 0 ] . GameName : "?" ;
119
+ return res . data [ 0 ] . GameName !== "" ? res . data [ 0 ] . GameName : "?" ;
120
120
}
121
121
122
122
export async function loadOffers (
@@ -197,7 +197,7 @@ export async function parseShop(shop: IStorefrontV2) {
197
197
( item : any ) => item . Item . ItemTypeID === VItemTypes . SkinLevel ,
198
198
) . map ( ( item : any ) => {
199
199
const skin = skins . find (
200
- ( skin ) => skin . levels [ 0 ] . uuid == item . Item . ItemID ,
200
+ ( skin ) => skin . levels [ 0 ] . uuid === item . Item . ItemID ,
201
201
) as ISkin ;
202
202
203
203
return {
@@ -214,7 +214,9 @@ export async function parseShop(shop: IStorefrontV2) {
214
214
var bonusStore = shop . BonusStore . BonusStoreOffers ;
215
215
for ( var i = 0 ; i < bonusStore . length ; i ++ ) {
216
216
let itemid = bonusStore [ i ] . Offer . Rewards [ 0 ] . ItemID ;
217
- const skin = skins . find ( ( skin ) => skin . levels [ 0 ] . uuid == itemid ) as ISkin ;
217
+ const skin = skins . find (
218
+ ( skin ) => skin . levels [ 0 ] . uuid === itemid ,
219
+ ) as ISkin ;
218
220
219
221
nightMarket [ i ] = {
220
222
...skin ,
@@ -295,7 +297,7 @@ export const reAuth = () =>
295
297
} ,
296
298
data : {
297
299
client_id : "play-valorant-web-prod" ,
298
- nonce : 1 ,
300
+ nonce : "1" ,
299
301
redirect_uri : "https://playvalorant.com/opt_in" ,
300
302
response_type : "token id_token" ,
301
303
response_mode : "query" ,
0 commit comments