mirror of
https://github.com/movie-web/movie-web.git
synced 2025-09-13 11:23:23 +00:00
Add backticks around error message copy
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user