fix: Mention why we can't support KAI if no CLIENT_ID

This commit is contained in:
zkldi
2022-12-13 01:45:00 +00:00
parent 99d9dcd6ab
commit afcbf4bc5d
@@ -27,7 +27,13 @@ export default function KAIIntegrationPage({ clientID, hash, kaiType, redirectUr
useSetSubheader(["Import Scores", `${gameConfig.name} Sync (${kaiType})`]);
if (!clientID) {
return <div>Sorry, this service isn't supported here, apparantly.</div>;
return (
<div>
Sorry, this service isn't supported here.
{process.env.REACT_APP_IS_LOCAL_DEV &&
` You haven't set REACT_APP_${kaiType}_CLIENT_ID in your .env file.`}
</div>
);
}
const { user } = useContext(UserContext);