@nualang/nualang-ui-components 0.1.1288 → 0.1.1289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1584,6 +1584,8 @@ function useExerciseState({
|
|
|
1584
1584
|
const response = await handleMessageBot(bot.botId, body);
|
|
1585
1585
|
if (response.errorMessage) {
|
|
1586
1586
|
openSnackbar(t("problem_getting_reply"), "error");
|
|
1587
|
+
setBotMessages(prevMessages => prevMessages.filter(message => message.isLoading !== true));
|
|
1588
|
+
addBotMessage('I made a mistake in my response. please try again!', false, true);
|
|
1587
1589
|
} else if (typeof response === "string" && response.startsWith("Syntax error:")) {
|
|
1588
1590
|
openSnackbar(response, "error");
|
|
1589
1591
|
}
|