Fix Contact Modal and improve Debug Log window

This commit is contained in:
Scott Nonnenberg 2022-03-21 11:41:48 -07:00 committed by GitHub
parent 5d051ae16a
commit c369e44d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 15 deletions

View file

@ -71,7 +71,7 @@ export const DebugLogWindow = ({
const linesToShow = Math.ceil(Math.min(window.innerHeight, 2000) / 5);
const value = fetchedLogText.split(/\n/g, linesToShow).join('\n');
setTextAreaValue(value);
setTextAreaValue(`${value}\n\n\n${i18n('debugLogLogIsIncomplete')}`);
setToastType(undefined);
}
@ -80,7 +80,7 @@ export const DebugLogWindow = ({
return () => {
shouldCancel = true;
};
}, [fetchLogs]);
}, [fetchLogs, i18n]);
const handleSubmit = async (ev: MouseEvent) => {
ev.preventDefault();