File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ export function loadDimApiData(
253
253
try {
254
254
const syncToken =
255
255
currentAccount && $featureFlags . dimApiSync && ! forceLoad
256
- ? getState ( ) . dimApi . profiles ?. [ makeProfileKeyFromAccount ( currentAccount ) ] ?. syncToken
256
+ ? getState ( ) . dimApi . profiles ?. [ makeProfileKeyFromAccount ( currentAccount ) ] ?. sync
257
257
: undefined ;
258
258
const profileResponse = await getDimApiProfile ( currentAccount , syncToken ) ;
259
259
dispatch ( profileLoaded ( { profileResponse, account : currentAccount } ) ) ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export interface DimApiState {
89
89
triumphs : number [ ] ;
90
90
91
91
/** This allows us to get just the items that changed from the DIM API instead of the whole deal. */
92
- syncToken ?: string ;
92
+ sync ?: string ;
93
93
} ;
94
94
} ;
95
95
@@ -421,6 +421,8 @@ function profileLoaded(
421
421
) ;
422
422
if ( foundSearchIndex >= 0 ) {
423
423
newSearches [ foundSearchIndex ] = search ;
424
+ } else {
425
+ newSearches . push ( search ) ;
424
426
}
425
427
}
426
428
for ( const searchHash of profileResponse . deletedSearchHashes ?? [ ] ) {
@@ -467,7 +469,7 @@ function profileLoaded(
467
469
loadouts : newLoadouts ,
468
470
tags : newTags ,
469
471
triumphs : [ ...newTriumphs ] ,
470
- syncToken : profileResponse . syncToken ,
472
+ sync : profileResponse . syncToken ,
471
473
} ,
472
474
} ;
473
475
}
You can’t perform that action at this time.
0 commit comments