mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 03:15:07 +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() {
|
||||
if (!props.error || !navigator.clipboard) return;
|
||||
navigator.clipboard.writeText(errorMessage);
|
||||
navigator.clipboard.writeText(`\`\`\`${errorMessage}\`\`\``);
|
||||
|
||||
setHasCopied(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user