diff --git a/src/docs/faq/maps.md b/src/docs/faq/maps.md index d6e35e5..3e36bc5 100644 --- a/src/docs/faq/maps.md +++ b/src/docs/faq/maps.md @@ -31,3 +31,7 @@ We encourage users to create games every 24hrs. Any maps you have added or made ### I can join my game but the spinner is constantly loading, why? This could mean that the service is currently down. Please visit us on Twitter or Reddit and let us know. + +### Unable to find owner for map? + +If you see a message labelled "Unable to find owner for map" please ensure that the owner of the map is connected to the game. If they are, they may need to refresh their browser to reconnect. diff --git a/src/network/NetworkedMapAndTokens.js b/src/network/NetworkedMapAndTokens.js index 9f3fe43..ecb8bdb 100644 --- a/src/network/NetworkedMapAndTokens.js +++ b/src/network/NetworkedMapAndTokens.js @@ -1,4 +1,5 @@ import React, { useState, useEffect, useRef } from "react"; +import { useToasts } from "react-toast-notifications"; import { useTokenData } from "../contexts/TokenDataContext"; import { useMapData } from "../contexts/MapDataContext"; @@ -35,6 +36,7 @@ const defaultMapActions = { * @param {NetworkedMapProps} props */ function NetworkedMapAndTokens({ session }) { + const { addToast } = useToasts(); const { userId } = useAuth(); const partyState = useParty(); const { @@ -143,6 +145,9 @@ function NetworkedMapAndTokens({ session }) { (player) => player.userId === asset.owner ); if (!owner) { + if (asset.type === "map") { + addToast("Unable to find owner for map"); + } continue; }