Skip to content

Commit 68478ef

Browse files
removed if check in init function of myProfile
1 parent 26cbc32 commit 68478ef

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Frontend/components/MyProfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,8 @@ function MyProfile({route}) {
225225
const init = async () => {
226226
try {
227227
setIsSaving(true);
228-
if (skillsList.length === 0) {
229-
await getDBskills();
230-
}
231-
if (languageList.length === 0) {
232-
await getDBlanguages();
233-
}
228+
await getDBskills();
229+
await getDBlanguages();
234230
setIsSaving(false);
235231
} catch (e) {
236232
console.log(e);

0 commit comments

Comments
 (0)