Skip to content

Commit

Permalink
Removed Facebook app check because it broken the init
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-playfab committed Oct 15, 2024
1 parent eae75a9 commit beb6602
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions website/src/hooks/use-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,13 @@ const loginEventCount = 7;
type Results = IResults & IFormHooks<IRegisterFormModel> & IPlayFabHooks;

// Facebook login
if (!is.null(facebookAppId)) {
window.fbAsyncInit = function () {
FB.init({
appId: facebookAppId,
xfbml: true,
version: "v19.0",
});
};
}
window.fbAsyncInit = function () {
FB.init({
appId: facebookAppId,
xfbml: true,
version: "v19.0",
});
};

export function useLogin(): Results {
const intl = useIntl();
Expand Down

0 comments on commit beb6602

Please sign in to comment.