This commit is contained in:
2024-06-12 16:03:56 +03:00
parent 2951a559bc
commit 72ec735e9d
2 changed files with 7 additions and 9 deletions

View File

@ -112,7 +112,7 @@
.anon-card {
display: flex;
flex-flow: row nowrap;
flex-flow: row wrap;
align-items: center;
animation: 0.3s ease-out 0s 1 cardPopup;
background: #001d39;

View File

@ -88,13 +88,11 @@ const AnonUserCard = (props: {
)}
{props.queueUser &&
clientId === props.queueUser.user.id &&
props.queueUser.position === 0 &&
props.queue?.status === "active" ? (
(props.queueUser.position === 0 && props.queue?.status === "active" ? (
<Button onClick={() => passQueue()}>{tr("Pass")}</Button>
) : (
<Button onClick={() => passQueue()}>{tr("Leave")}</Button>
)}
<p></p>
))}
</div>
);
};