Added check that database is available before joining a game
Fixes issue with joining a game already in progress on a browser with indexedDB disabled
This commit is contained in:
@@ -219,7 +219,6 @@ export function MapDataProvider({ children }) {
|
||||
}
|
||||
|
||||
async function getMapFromDB(mapId) {
|
||||
if (!database) return;
|
||||
return await database.table("maps").get(mapId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user