From bc1e4d1f39709b62278378cd5a0b5de946fa97ee Mon Sep 17 00:00:00 2001 From: mayuran-deriv Date: Thu, 5 Dec 2024 17:41:29 +0400 Subject: [PATCH] fix: snack bar --- src/stores/quick-strategy-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/quick-strategy-store.ts b/src/stores/quick-strategy-store.ts index 23d9dbc3..c383b20e 100644 --- a/src/stores/quick-strategy-store.ts +++ b/src/stores/quick-strategy-store.ts @@ -207,7 +207,7 @@ export default class QuickStrategyStore implements IQuickStrategyStore { } this.setFormVisibility(false); - botNotification(notification_message()[NOTIFICATION_TYPE.BOT_IMPORT]); + this.root_store.client.is_logged_in && botNotification(notification_message()[NOTIFICATION_TYPE.BOT_IMPORT]); await load({ block_string: window.Blockly.Xml.domToText(strategy_dom),