We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8fabc5 commit d1f0c22Copy full SHA for d1f0c22
Frontend/components/Discover.js
@@ -124,10 +124,14 @@ function Discover() {
124
});
125
if (res.data === 'Matched') {
126
console.log('Matched');
127
- const msg = await axiosInstance.post('/message', {
128
- Receiver_ID: cards[index].id,
129
- text: 'Hi, 👋 We matched up',
130
- });
+ try {
+ const msg = await axiosInstance.post('/message', {
+ Receiver_ID: cards[index].id,
+ text: 'Hi, 👋 We matched up',
131
+ });
132
+ } catch (err) {
133
+ console.log(err);
134
+ }
135
} else {
136
console.log('Yet to Match');
137
}
@@ -187,7 +191,7 @@ function Discover() {
187
191
};
188
192
189
193
init();
190
- }, [filtered_skills]);
194
+ }, [filtered_skills, user.skills]);
195
196
return (
197
<View style={styles.container}>
0 commit comments