From 72742a1103e78ea29fb38656af91737d53275d54 Mon Sep 17 00:00:00 2001 From: buzzcode2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 5 Apr 2024 09:50:34 +0800 Subject: [PATCH] fixed reference variable when displaying error messages --- gui/scripts/alerts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/scripts/alerts.js b/gui/scripts/alerts.js index a4ce89b..d3ef154 100644 --- a/gui/scripts/alerts.js +++ b/gui/scripts/alerts.js @@ -63,9 +63,9 @@ export default class alerts { alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE])); } else { try { - M.toast({ text: message }); - } catch (err) {} - } + M.toast({ text: ERROR_MESSAGE }); + } catch (err) {}; + }; })(); } }