Skip to content

Commit

Permalink
Fix: Message when db contains no praise
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Aug 15, 2022
1 parent 36a5537 commit d040dc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/Start/components/PraiseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const PRAISE_LIST_KEY = 'ALL_PRAISE';
export const PraiseTable = (): JSX.Element => {
const allPraise = useRecoilValue(AllPraiseList(PRAISE_LIST_KEY));

if (!Array.isArray(allPraise) || allPraise.length === 0)
return <div className="p-5">No praise have been dished yet.</div>;

return (
<>
<ul>
Expand Down

0 comments on commit d040dc9

Please sign in to comment.