From efe1de11989048a70ed3b024fc750aee17960eca Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Tue, 10 Dec 2024 13:26:35 +0530 Subject: [PATCH] Fix 'isJarvis' check that always returned true --- src/app/util/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/util/helpers.js b/src/app/util/helpers.js index 0af5e1209..4d50e6561 100644 --- a/src/app/util/helpers.js +++ b/src/app/util/helpers.js @@ -223,8 +223,8 @@ export const handleHelpLinksClick = () => { * @return {boolean} Whether or not this is a jarvis site. */ export const isJarvis = () => { - if ( NewfoldRuntime.hasCapability( 'isJarvis' ) ) { - return window.NewfoldRuntime.capabilities.isJarvis; + if ( window.NewfoldRuntime.capabilities.hasOwnProperty( 'isJarvis' ) ) { + return NewfoldRuntime.hasCapability( 'isJarvis' ); } return true; };