Update Tinder.js
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 6s
Create and publish a Docker image / Deploy image (push) Has been skipped

This commit is contained in:
VITALY-VORON 2023-08-24 21:52:39 +03:00
parent b34f1efce0
commit 6cadde9ec9

View File

@ -43,13 +43,20 @@ const db = [
console.log(name + ' left the screen!');
};
useEffect(() => {
let uniqueTags = [];
const getId = () => {
if (cardId.length === swiped.id) {
uniqueTags = cardId.filter(function(elem, pos) {
return cardId.indexOf(elem) === pos;
});
return cardId.indexOf(elem) === pos;})
console.log(uniqueTags);
}
})
// const getId = () => {
// uniqueTags = cardId.filter(function(elem, pos) {
// return cardId.indexOf(elem) === pos;
// });
// console.log(uniqueTags);
// }
return (
<div className='tinder-container'>