add brackets for operator precedence

pull/21833/head
Michael Telatynski 2020-12-17 12:02:16 +00:00
parent 1b2cfa5f05
commit 2567fcd045
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const SSOButton: React.FC<ISSOButtonProps> = ({
};
let icon;
if (typeof idp?.icon === "string" && idp.icon.startsWith("mxc://") || idp.icon.startsWith("https://")) {
if (typeof idp?.icon === "string" && (idp.icon.startsWith("mxc://") || idp.icon.startsWith("https://"))) {
icon = <img
src={matrixClient.mxcUrlToHttp(idp.icon, 24, 24, "crop", true)}
height="24"