Skip to content

Commit

Permalink
Removed unneeded boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
EnasAbdelrazek committed Jul 1, 2024
1 parent caafd2b commit f80dab8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function SignIn(username?: string, password?: string, useAuthToken?
if (typeof useAuthToken === "undefined") {
mx.login(username, password, onSuccess, onError as any);
} else {
mx.login2(username, password, Boolean(useAuthToken), onSuccess, onError as any);
mx.login2(username, password, useAuthToken, onSuccess, onError as any);
}
});
// END USER CODE
Expand Down

0 comments on commit f80dab8

Please sign in to comment.