13 lines
644 B
TypeScript
13 lines
644 B
TypeScript
// Metro module 11723 (f11724).
|
|
import GameRelationshipStore from "../../game_relationships/GameRelationshipStore";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
import { useGetOrFetchApplication } from "../../applications/useGetOrFetchApplications";
|
|
export default function useProvisionalAccountApplication(c19095_0) {
|
|
return useGetOrFetchApplication(useStateFromStores([GameRelationshipStore], () => {
|
|
const gameRelationshipsForUser = GameRelationshipStore.getGameRelationshipsForUser(c19095_0);
|
|
if (gameRelationshipsForUser.length !== 0) {
|
|
return gameRelationshipsForUser[0].applicationId;
|
|
}
|
|
}));
|
|
};
|