Skip to content

Commit

Permalink
fixed linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Reich <[email protected]>
  • Loading branch information
n3rdc4ptn committed Jan 24, 2023
1 parent 33f2683 commit a328ec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/deskstar-frontend/pages/bookings/add.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ export default function AddBooking({
try {
await createBooking(session, desk.deskId, startDateTime, endDateTime);

const message = `You successfully booked the desk ${desk.deskName} from ${startDateTime.toLocaleDateString()} ${startDateTime.toLocaleTimeString()} to ${endDateTime.toLocaleDateString()} ${endDateTime.toLocaleTimeString()}`;
const message = `You successfully booked the desk ${
desk.deskName
} from ${startDateTime.toLocaleDateString()} ${startDateTime.toLocaleTimeString()} to ${endDateTime.toLocaleDateString()} ${endDateTime.toLocaleTimeString()}`;
event.target.setAttribute("class", "btn btn-disabled");
setButtonText("Booked");
toast.success(message);

} catch (error) {
console.error(error);
toast.error(`${error}`);
Expand Down

0 comments on commit a328ec0

Please sign in to comment.