1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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);