Skip to content

Commit

Permalink
fix: list barbeiro
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 8, 2022
1 parent 5a40396 commit 17362ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/Barbeiro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function Barbeiro() {
getClientesNight().length > 0) && <h2 className={styles.shift}>Atendimento a seguir</h2>}
{getFirstCliente() && (
<CardCliente
key={getFirstCliente().id}
first
cliente={getFirstCliente()}
onClick={() => {
Expand All @@ -123,6 +124,7 @@ export function Barbeiro() {
<>
{getFirstCliente().id !== cliente.id && (
<CardCliente
key={cliente.id}
cliente={cliente}
onClick={() => {
localStorage.setItem('cliente', JSON.stringify(cliente));
Expand All @@ -135,7 +137,7 @@ export function Barbeiro() {
</>
)}

{getClientesAfternoon().length > 1 && (
{getClientesAfternoon().length >= 1 && (
<>
<h2 className={styles.shift}>
Tarde
Expand All @@ -158,7 +160,7 @@ export function Barbeiro() {
</>
)}

{getClientesNight().length > 1 && (
{getClientesNight().length >= 1 && (
<>
<h2 className={styles.shift}>
Noite
Expand Down

0 comments on commit 17362ec

Please sign in to comment.