Fix toasts

This commit is contained in:
city-unit 2023-09-21 00:40:38 -04:00
parent e0b5df97c4
commit 440ecfc991

View File

@ -135,12 +135,12 @@ async function saveBookmarkMenu() {
export async function createBranch(mesId) {
if (!chat.length) {
toastr.warning('The chat is empty.', 'Bookmark creation failed');
toastr.warning('The chat is empty.', 'Branch creation failed');
return;
}
if (mesId < 0 || mesId >= chat.length) {
toastr.warning('Invalid message ID.', 'Bookmark creation failed');
toastr.warning('Invalid message ID.', 'Branch creation failed');
return;
}