Unfollow tool for Bluesky

check status isnt undefined before adding a follow record

Changed files
+9 -7
src
+9 -7
src/App.tsx
···
}
});
-
setFollowRecords(followRecords.length, {
-
did: record.value.subject,
-
handle: handle,
-
uri: record.uri,
-
status: status,
-
toBeDeleted: false,
-
});
+
if (status !== undefined) {
+
setFollowRecords(followRecords.length, {
+
did: record.value.subject,
+
handle: handle,
+
uri: record.uri,
+
status: status,
+
toBeDeleted: false,
+
});
+
}
}
setProgress(progress() + 1);
}),