Skip to content

Commit

Permalink
clean js file (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: tijani <tijani-dia@github.com>
  • Loading branch information
Tijani-Dia and tijani committed Jun 23, 2021
1 parent 66490c3 commit 4d48e94
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -29,7 +29,7 @@ async function editMessage(event) {
let form = event.target;
let pk = form.dataset.id;
let payload = JSON.stringify({
channel: document.querySelector("#channel-name").innerText.slice(1),
channel: document.querySelector("#channel-name"),
content: form["content"].value,
})

Expand Down Expand Up @@ -91,7 +91,7 @@ async function createMessage(event) {

let form = event.target;
let payload = JSON.stringify({
channel: document.querySelector("#channel-name").innerText.slice(1),
channel: document.querySelector("#channel-name"),
content: form["content"].value,
});

Expand Down

0 comments on commit 4d48e94

Please sign in to comment.