Skip to content

Commit 94c313e

Browse files
committed
dont show top tips when there are none
1 parent 3cc1982 commit 94c313e

File tree

1 file changed

+2
-2
lines changed
  • client/src/app/(client)/(pages)/(event)/components

1 file changed

+2
-2
lines changed

client/src/app/(client)/(pages)/(event)/components/stage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const TopTip = React.memo(() => {
4949
}, [state])
5050

5151
if (!tip) {
52-
return <></>
52+
return null
5353
}
5454

5555
return (
@@ -213,7 +213,7 @@ export const Stage = React.memo(() => {
213213
{nowPlayingEl}
214214
{onTheSideEl}
215215
{upNextEl}
216-
{(!nowPlayingEl || !onTheSideEl || !upNextEl) && topTipEl}
216+
{(!nowPlayingEl || !onTheSideEl || !upNextEl) && (state.tips.length > 0) && topTipEl}
217217
</div>
218218
</Section>
219219
)

0 commit comments

Comments
 (0)