fix oom toast title

This commit is contained in:
Mary Hipp
2025-02-10 11:35:25 -05:00
committed by psychedelicious
parent c194281f4d
commit 588e8a0195

View File

@@ -11,10 +11,10 @@ export const ErrorToastTitle = ({ errorType }: Props) => {
const { t } = useTranslation();
if (errorType === 'OutOfMemoryError') {
return t('toast.outOfMemoryError');
return <Text>{t('toast.outOfMemoryError')}</Text>;
}
return t('toast.serverError');
return <Text>{t('toast.serverError')}</Text>;
};
export default function ErrorToastDescription({ errorType, isLocal, sessionId, errorMessage }: Props) {