mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-24 12:11:56 -05:00
Fix scrim page showing buttons that crash the page for logged out users
This commit is contained in:
parent
3361be7087
commit
5a99210be4
|
|
@ -111,11 +111,13 @@ export default function ScrimsPage() {
|
|||
{
|
||||
label: t("scrims:tabs.owned"),
|
||||
number: data.posts.owned.length,
|
||||
disabled: !user,
|
||||
icon: <ArrowDownOnSquareIcon />,
|
||||
},
|
||||
{
|
||||
label: t("scrims:tabs.requests"),
|
||||
number: data.posts.requested.length,
|
||||
disabled: !user,
|
||||
icon: <ArrowUpOnSquareIcon />,
|
||||
},
|
||||
{
|
||||
|
|
@ -464,7 +466,7 @@ function ScrimsTable({
|
|||
</div>
|
||||
</td>
|
||||
) : null}
|
||||
{requestScrim && post.requests.length === 0 ? (
|
||||
{user && requestScrim && post.requests.length === 0 ? (
|
||||
<td className={styles.postFloatingActionCell}>
|
||||
<Button
|
||||
size="tiny"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user