function checkGiftData(currentGiftData, newGiftData, giftOwner){
    var updateGiftBool = false;
    if(currentGiftData.description != newGiftData.description) {
      console.log("Description Updated: " + currentGiftData.description + " " + newGiftData.description);
      updateGiftBool = true;
    }
    if(currentGiftData.link != newGiftData.link) {
      //console.log("Link Updated");
      updateGiftBool = true;
    }
    if(currentGiftData.title != newGiftData.title) {
      //console.log("Title Updated");
      updateGiftBool = true;
    }
    if(currentGiftData.where != newGiftData.where) {
      //console.log("Where Updated");
      updateGiftBool = true;
    }

    if(updateGiftBool) {
      if (newGiftData.uid == currentModalOpen){
        currentModalOpen = "";
        console.log("Closed modal");
        modal.style.display = "none";
      }
      changeGiftElement(newGiftData, giftOwner);
    }
  }
//This function compares old gift data with new gift data, as well as keeping track of the gift's owner.
This function compares old gift data with new gift data, as well as keeping track of the gift's owner.
This function compares old gift data with new gift data as well as keeping track of the gift ' s owner .
function checkGiftData(currentGiftData, newGiftData, giftOwner){
    var updateGiftBool = false;
    if(currentGiftData.description != newGiftData.description) {
      console.log("Description Updated: " + currentGiftData.description + " " + newGiftData.description);
      updateGiftBool = true;
    }
    if(currentGiftData.link != newGiftData.link) {
      updateGiftBool = true;
    }
    if(currentGiftData.title != newGiftData.title) {
      updateGiftBool = true;
    }
    if(currentGiftData.where != newGiftData.where) {
      updateGiftBool = true;
    }
    if(updateGiftBool) {
      if (newGiftData.uid == currentModalOpen){
        currentModalOpen = "";
        console.log("Closed modal");
        modal.style.display = "none";
      }
      changeGiftElement(newGiftData, giftOwner);
    }
  }
function checkGiftData ( currentGiftData , newGiftData , giftOwner ) { var updateGiftBool = false ; if ( currentGiftData . description != newGiftData . description ) { console . log ( "Description Updated: " + currentGiftData . description + " " + newGiftData . description ) ; updateGiftBool = true ; } if ( currentGiftData . link != newGiftData . link ) { updateGiftBool = true ; } if ( currentGiftData . title != newGiftData . title ) { updateGiftBool = true ; } if ( currentGiftData . where != newGiftData . where ) { updateGiftBool = true ; } if ( updateGiftBool ) { if ( newGiftData . uid == currentModalOpen ) { currentModalOpen = "" ; console . log ( "Closed modal" ) ; modal . style . display = "none" ; } changeGiftElement ( newGiftData , giftOwner ) ; } }
This function compares old gift data with new gift data, as well as keeping track of the gift's owner.
This function compares old gift data with new gift data as well as keeping track of the gift ' s owner .
//console.log("Link Updated"); //console.log("Title Updated"); //console.log("Where Updated");