File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,9 @@ ipcMain.handle(
746
746
logInfo ( [ `launching` , title , game ] , LogPrefix . Backend )
747
747
748
748
if ( recentGames . length ) {
749
- let updatedRecentGames = recentGames . filter ( ( a ) => a . appName !== game )
749
+ let updatedRecentGames = recentGames . filter (
750
+ ( a ) => a . appName && a . appName !== game
751
+ )
750
752
if ( updatedRecentGames . length > MAX_RECENT_GAMES ) {
751
753
const newArr = [ ]
752
754
for ( let i = 0 ; i <= MAX_RECENT_GAMES ; i ++ ) {
@@ -760,7 +762,7 @@ ipcMain.handle(
760
762
updatedRecentGames . unshift ( { appName : game , title } )
761
763
configStore . set ( 'games.recent' , updatedRecentGames )
762
764
} else {
763
- configStore . set ( 'games.recent' , [ { game, title : title } ] )
765
+ configStore . set ( 'games.recent' , [ { appName : game , title } ] )
764
766
}
765
767
766
768
if ( minimizeOnLaunch ) {
You can’t perform that action at this time.
0 commit comments