Skip to content

Commit

Permalink
MWPW-142878 make code a little cleaner and syncronized
Browse files Browse the repository at this point in the history
  • Loading branch information
vhargrave committed Sep 19, 2024
1 parent c15b8ce commit 229a056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/features/google-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const onToken = async (getMetadata, data, getConfig) => {
let destination;
const config = getConfig();
try {
destination = typeof config.googleLoginURLCallback === 'function' ? new URL(await config.googleLoginURLCallback()) : new URL(getMetadata('google-login-redirect'))?.href;
destination = new URL(typeof config.googleLoginURLCallback === 'function' ? await config.googleLoginURLCallback() : getMetadata('google-login-redirect'))?.href;
} catch {
// Do nothing
}
Expand Down

0 comments on commit 229a056

Please sign in to comment.