Skip to content

Commit

Permalink
fix: icon appearing in widgets and suggestions causing console issues
Browse files Browse the repository at this point in the history
- Fixes issue with Hyve icon appearing in Widgets.
- Fixes the issue with Suggested questions not appearing.
  • Loading branch information
HardeepAsrani committed Nov 19, 2024
1 parent d8e1e26 commit 884ddc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions inc/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class App {
const chatMessageBox = document.getElementById( 'hyve-message-box' );

let suggestions = [
`<span>${ suggestions }</span>`
`<span>${ strings.suggestions }</span>`
];

filteredQuestions.forEach( question => {
Expand Down

0 comments on commit 884ddc5

Please sign in to comment.