M #~: Minor fix on remote buttons (#1888)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2022-03-29 10:29:35 +02:00
1 parent 7fb14cedd1
commit 6b52abb5e3
1 file changed
+3 -5
@@ -138,13 +138,11 @@ const PreConsoleButton = memo(
return null
}
if (isVCenter(vm)) {
return connectionType === VM_ACTIONS.VMRC ? (
<VMRCButton {...props} />
) : null
if (connectionType === VM_ACTIONS.VMRC) {
return isVCenter(vm) ? <VMRCButton {...props} /> : null
}
return <GuacamoleButton {...props} />
return !isVCenter(vm) ? <GuacamoleButton {...props} /> : null
}
)