Skip to content

Commit

Permalink
.-,
Browse files Browse the repository at this point in the history
  • Loading branch information
AAromero1 committed Jun 26, 2024
1 parent 416f450 commit 20d7d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adminpages/settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { User } from "@auth0/auth0-react";
import { useAuth0 } from "@auth0/auth0-react";

function Settings() {
const [discount, setDiscount] = useState(0);
const [discount, setDiscount] = useState(1);
const { user } = useAuth0();

const changeDiscount = (event) => {
Expand All @@ -19,8 +19,8 @@ function Settings() {
await axios.post(
"https://flightsbooking.me/changediscount",
{
email: user.email,
new_discount: discount,
email: user.email
},
{
headers: {
Expand Down

0 comments on commit 20d7d72

Please sign in to comment.