Add backticks around error message copy

This commit is contained in:
Jip Fr 2023-11-22 14:15:00 +01:00
parent a9da1dada4
commit 1343d7f907

View File

@ -16,7 +16,7 @@ export function ErrorCard(props: { error: DisplayError | string }) {
function copyError() {
if (!props.error || !navigator.clipboard) return;
navigator.clipboard.writeText(errorMessage);
navigator.clipboard.writeText(`\`\`\`${errorMessage}\`\`\``);
setHasCopied(true);