function initializeGifts(){
    //console.log(userBoughtGiftsArr);
    //console.log(userBoughtGiftsUsersArr);

    if(userBoughtGiftsArr.length == userBoughtGiftsUsersArr.length) {
      for (var i = 0; i < userBoughtGiftsArr.length; i++) {
        createGiftElement(userBoughtGiftsArr[i], userBoughtGiftsUsersArr[i]);
      }
    } else {
      alert("There has been a critical error, redirecting back home...");
      navigation(0);
    }
  }
//This function initializes and loads the gifts that were collected on the home page.
This function initializes and loads the gifts that were collected on the home page.
This function initializes and loads the gifts that were collected on the home page .
function initializeGifts(){
    if(userBoughtGiftsArr.length == userBoughtGiftsUsersArr.length) {
      for (var i = 0; i < userBoughtGiftsArr.length; i++) {
        createGiftElement(userBoughtGiftsArr[i], userBoughtGiftsUsersArr[i]);
      }
    } else {
      alert("There has been a critical error, redirecting back home...");
      navigation(0);
    }
  }
function initializeGifts ( ) { if ( userBoughtGiftsArr . length == userBoughtGiftsUsersArr . length ) { for ( var i = 0 ; i < userBoughtGiftsArr . length ; i ++ ) { createGiftElement ( userBoughtGiftsArr [ i ] , userBoughtGiftsUsersArr [ i ] ) ; } } else { alert ( "There has been a critical error, redirecting back home..." ) ; navigation ( 0 ) ; } }
This function initializes and loads the gifts that were collected on the home page.
This function initializes and loads the gifts that were collected on the home page .
//console.log(userBoughtGiftsArr); //console.log(userBoughtGiftsUsersArr);