diff --git a/inc/Main.php b/inc/Main.php index f3ece4f..655c845 100644 --- a/inc/Main.php +++ b/inc/Main.php @@ -233,6 +233,10 @@ public static function get_settings() { * @return void */ public function enqueue_assets() { + if ( is_admin() || defined( 'REST_REQUEST' ) ) { + return; + } + $asset_file = include HYVE_LITE_PATH . '/build/frontend/frontend.asset.php'; wp_register_style( diff --git a/src/frontend/App.js b/src/frontend/App.js index cb83a11..57e5f21 100644 --- a/src/frontend/App.js +++ b/src/frontend/App.js @@ -331,7 +331,7 @@ class App { const chatMessageBox = document.getElementById( 'hyve-message-box' ); let suggestions = [ - `${ suggestions }` + `${ strings.suggestions }` ]; filteredQuestions.forEach( question => {