Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliams1188 committed Aug 14, 2020
1 parent 8c1133d commit 74e5e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion client/edit-profile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$('#username-2').val(firebaseUser.username)
$().ready(() => {
$('#username-2').val(firebaseUser.username)
})

$('#wf-form-Editing-Profile').submit(function (event) {
event.preventDefault()
Expand Down
4 changes: 2 additions & 2 deletions client/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let userUsers = []

$().ready(async () => {
getUserUsers()
if (currentUser.id) getCollections()
if (currentUser.id) await getCollections()
let isFollowed = userFollowsUser(getUserFromUrl())
if (isFollowed) {
$('.follow-user-button').hide()
Expand Down Expand Up @@ -215,7 +215,7 @@ async function populateCompanies() {
for (item of items) {
let company = item.company
let record = companyCollection.find(item => item.slug === company.slug)
if (record.likes) company.likes = record.likes
if (record && record.likes) company.likes = record.likes
company.reviews = 0
$('.tools-followed').append(`
<div id="w-node-28d9c17ddbae-b8840649" data-company="${company.companyId}" class="div-block-917 user-tool-list">
Expand Down

0 comments on commit 74e5e0c

Please sign in to comment.