Skip to content

Commit cdd1c9d

Browse files
committed
Fix cached data on error
1 parent 3e9267a commit cdd1c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ async function FetchSteamUserFamilyData( callback )
283283
error: error.message,
284284
};
285285

286-
if( cache )
286+
if( cache && cache.data )
287287
{
288-
callbackResponse.data = cache;
288+
callbackResponse.data = cache.data;
289289
}
290290

291291
callback( callbackResponse );

0 commit comments

Comments
 (0)