mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-24 02:31:14 +01:00
Add backticks around error message copy
This commit is contained in:
parent
a9da1dada4
commit
1343d7f907
@ -16,7 +16,7 @@ export function ErrorCard(props: { error: DisplayError | string }) {
|
|||||||
|
|
||||||
function copyError() {
|
function copyError() {
|
||||||
if (!props.error || !navigator.clipboard) return;
|
if (!props.error || !navigator.clipboard) return;
|
||||||
navigator.clipboard.writeText(errorMessage);
|
navigator.clipboard.writeText(`\`\`\`${errorMessage}\`\`\``);
|
||||||
|
|
||||||
setHasCopied(true);
|
setHasCopied(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user