Skip to content

Commit

Permalink
Update AddLight.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark authored Jul 13, 2024
1 parent e9b402c commit bb770ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/AddLight/AddLight.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const AddLight = ({ HOST_IP, API_KEY }) => {
});
};

const handleForm = (evt) => {
evt.preventDefault();
const handleForm = () => {
const { protocol: lightproto, ip: lightip, ...rest } = lightData;
const formattedData = {
protocol: lightproto,
Expand Down

0 comments on commit bb770ba

Please sign in to comment.