From 588e8a0195bd2acf76749b5135dddd5bfa668596 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Mon, 10 Feb 2025 11:35:25 -0500 Subject: [PATCH] fix oom toast title --- .../frontend/web/src/features/toast/ErrorToastDescription.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/toast/ErrorToastDescription.tsx b/invokeai/frontend/web/src/features/toast/ErrorToastDescription.tsx index 30a9ab8a9b..c0ee8661c7 100644 --- a/invokeai/frontend/web/src/features/toast/ErrorToastDescription.tsx +++ b/invokeai/frontend/web/src/features/toast/ErrorToastDescription.tsx @@ -11,10 +11,10 @@ export const ErrorToastTitle = ({ errorType }: Props) => { const { t } = useTranslation(); if (errorType === 'OutOfMemoryError') { - return t('toast.outOfMemoryError'); + return {t('toast.outOfMemoryError')}; } - return t('toast.serverError'); + return {t('toast.serverError')}; }; export default function ErrorToastDescription({ errorType, isLocal, sessionId, errorMessage }: Props) {