Browse Source

Fixed bug that prevented Following a name working in FollowButton.tsx

pull/24/head
Qortal Dev 6 months ago
parent
commit
e666751ded
  1. 4
      src/components/common/ContentButtons/FollowButton.tsx

4
src/components/common/ContentButtons/FollowButton.tsx

@ -33,9 +33,9 @@ export const FollowButton = ({ followerName, ...props }: FollowButtonProps) => {
const followName = () => { const followName = () => {
if (followingList.includes(followerName) === false) { if (followingList.includes(followerName) === false) {
qortalRequest({ qortalRequest({
action: "ADD_LIST_ITEM", action: "ADD_LIST_ITEMS",
list_name: "followedNames", list_name: "followedNames",
item: followerName, items: [followerName],
}).then(response => { }).then(response => {
if (response === false) console.log("followName failed"); if (response === false) console.log("followName failed");
else { else {

Loading…
Cancel
Save