You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
add brackets for operator precedence
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user