Skip to content

Commit

Permalink
fix tag link bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliams1188 committed Jul 13, 2021
1 parent fce2b8b commit 5117e46
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 232 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"semi": false,
"tabWidth": 2,
"arrowParens": "avoid"
}
4 changes: 2 additions & 2 deletions client/edit-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ setTimeout(() => {
$('#wf-form-Editing-Profile').submit(function (event) {
event.preventDefault()
let data = objectifyForm($(this).serializeArray().filter(i => i.value))
console.log(data)
console.log({ data })
updateUser(data)
})

async function updateUser(data) {
console.log(firebaseUser)
console.log({ firebaseUser })
if (!firebaseUser || firebaseUser.username === data.username || await searchUserBySlug(slugify(data.username)) == false) {
data.username = slugify(data.username)
return USERS.doc(currentUser.id).set({
Expand Down
Loading

0 comments on commit 5117e46

Please sign in to comment.