Explorar o código

fix: profiles will not be selected after import

wonfen hai 10 meses
pai
achega
592167ffb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();