Skip to content

Commit

Permalink
fix: tempo de cancelamento reduzido 30 min
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 21, 2022
1 parent c7d3f2f commit 62d9c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useTicket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function useTicket() {
const diff = new Date(dataAgenda).getTime() - new Date(dataHoraAtual).getTime();
const diffMinutes = Math.round(diff / 1000 / 60);

if (diffMinutes < 60) {
if (diffMinutes < 30) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/MyTicket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function MyTicket() {
<div className={styles.container}>
{verificaHorarioCancelamento(cliente as ClienteMetadata) && (
<div className={styles.containerAlert}>
<Alert title="Você só cancelar o agendamento 1 hora antes do seu horário" warning />
<Alert title="Você só pode cancelar o agendamento 30 minutos antes do seu horário" warning />
</div>
)}
<h2>Apresente esse ticket para o seu barbeiro</h2>
Expand Down

0 comments on commit 62d9c0b

Please sign in to comment.