Skip to content

Commit

Permalink
fix(/manage): prefer-nullish-coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
flowergardn committed Dec 10, 2023
1 parent 1cb87e8 commit 43e271c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/manage/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ManageCard: NextPage<{ id: string }> = ({ id }) => {
</BasePage>
);

if (cardError || !data) {
if (cardError ?? !data) {
toast.error(cardError?.message ?? "");
return (
<BasePage>
Expand Down

0 comments on commit 43e271c

Please sign in to comment.