3
0
mirror of https://github.com/Qortal/q-tube.git synced 2025-02-15 03:35:53 +00:00

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

This commit is contained in:
Qortal Dev 2024-03-28 13:58:37 -06:00
parent 9cf2932d81
commit e666751ded

View File

@ -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 {