Skip to content

Commit

Permalink
Merge pull request #23 from TLI-Group-1/fix/update-claimed-list-every…
Browse files Browse the repository at this point in the history
…-search

update list of claimed offers upon every search after user login
  • Loading branch information
Shalev-Lifshitz authored Dec 12, 2021
2 parents 22cc568 + 7637913 commit 27203f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ async function submitSearch() {
// display the results if successful
displayCarsOrOffers(results);
}

// update the list of claimed offers upon every search after login
const userID = fetchQueryParamByKey('user_id');
if (userID !== '' && userID !== null) {
updateClaimedOffers(userID);
}
}
catch (e) {
console.log(e);
Expand Down

0 comments on commit 27203f4

Please sign in to comment.