diff --git a/website/src/hooks/use-login.ts b/website/src/hooks/use-login.ts index e435523..df32ac9 100644 --- a/website/src/hooks/use-login.ts +++ b/website/src/hooks/use-login.ts @@ -57,15 +57,13 @@ const loginEventCount = 7; type Results = IResults & IFormHooks & 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();