Skip to content

Commit

Permalink
fix: fixed undefined error message
Browse files Browse the repository at this point in the history
  • Loading branch information
stackedq committed Aug 28, 2023
1 parent 2b1bd17 commit 093ff61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AuthorizedMirrorButton = ({ publication, hideCount, profile }: IActionButt
}, 10000)
}
useEffect(() => {
showErrorToast(String(error))
if (error) showErrorToast(String(error))
}, [error])
return (
<ActionButton
Expand Down

0 comments on commit 093ff61

Please sign in to comment.