Browse Source

fix: profiles will not be selected after import

wonfen 10 tháng trước cách đây
mục cha
commit
592167ffb7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/pages/profiles.tsx

+ 1 - 1
src/pages/profiles.tsx

@@ -137,7 +137,7 @@ const ProfilePage = () => {
         mutate("getProfiles", newProfiles);
 
         const remoteItem = newProfiles.items?.find((e) => e.type === "remote");
-        if (!newProfiles.current && remoteItem) {
+        if (newProfiles.current && remoteItem) {
           const current = remoteItem.uid;
           await patchProfiles({ current });
           mutateLogs();