# "FAILED" error selecting Favorite badges

**URL:** https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657
**Category:** Bug
**Created:** [July 1, 2021, 3:43pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657 "2021-07-01T15:43:10Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 1, 2021, 3:43pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/1 "2021-07-01T15:43:10Z")

</div>

1. Two badges already selected.

 ![Screenshot_20210701-092934_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/e/1/e1757662717477bd1f6f0ffc0d61f79fed7880b5.png)

* * *

1. Click once to try to deselect a badge.

 ![Screenshot_20210701-093210_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/0/3/03ccb63e15687dacb5746bfe49a03415b1f6804c.png)

* * *

1. Didn’t work.

 ![Screenshot_20210701-093256_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/b/4/b49fd95733ad2ecf75db8410839d8aa762a1d58f.png)

* * *

1. Click again to try to deselect the same badge.

 ![Screenshot_20210701-093425_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/b/5/b5721cba99d53bbced2b11a827e13f93c08d55c2.png)

* * *

1. Worked this time.

 ![Screenshot_20210701-093501_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/2/0/20122fd7b3e106d50c1e89d3fe079edc8a622ec8.png)

* * *

1. Click once to try to select a new badge (New User of the Month).

 ![Screenshot_20210701-093635_Samsung Internet](https://global.discourse-cdn.com/meta/original/3X/5/6/56cf8b1dee634f8e5aeaa328db058fe27f800eaa.png)

Repeated clicks to try to select yield the same result. I also noticed that the Discourse banner disappears underneath when the FAILED modal pops up.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 1, 2021, 4:01pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/2 "2021-07-01T16:01:06Z")

</div>

Sorry, @riking. Somehow I stepped on your topic title edit. No idea how I did that and I certainly didn’t intend to. Maybe another bug?

I manually corrected the topic title afterwards. I had somehow restored it to the original without even trying.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 5, 2021, 1:15am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/3 "2021-07-05T01:15:24Z")

</div>

The bug persists. I cannot deselect or select favorite badges at all any more, so my displayed badges are now frozen in time.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 6, 2021, 3:13am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/5 "2021-07-06T03:13:09Z")

</div>

🎵 ❄

They won’t go, they won’t go  
Can’t choose badges anymore  
They won’t go, They won’t go  
They’re both frozen to the floor  
They’re forever here and going to stay  
Let the clicks rage on  
I hope there’s a fix coming any day

🙏 🔧

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 7, 2021, 9:19am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/7 "2021-07-07T09:19:20Z")

</div>

Thanks for the report. We’ll have it fixed.

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [July 10, 2021, 11:31pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/9 "2021-07-10T23:31:14Z")

</div>

1st click will make the badge selected but the star icon is not displayed as “filled”, if refresh the page will see it was selected and the badge is displayed on user card properly.

But with the display issue, when user click the second time, the star icon will show as filled which actually cancel the selection.

I see it also happens on meta.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 12, 2021, 9:51am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/10 "2021-07-12T09:51:18Z")

</div>

Thanks for the feedback, we have assigned the work to one of our engineers and they’ll report back when completed.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 12, 2021, 11:52pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/11 "2021-07-12T23:52:53Z")

</div>

Harsh crowd…

😅

Thanks in advance to all involved for the upcoming fix though.

🙂

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [July 14, 2021, 3:18pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/12 "2021-07-14T15:18:22Z")

</div>

This PR fixes problems with selecting favorite badges:  
[https://github.com/discourse/discourse/pull/13731](https://github.com/discourse/discourse/pull/13731)

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 14, 2021, 4:44pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/14 "2021-07-14T16:44:30Z")

</div>

I can confirm that it works! 😃

I do have to remember to only single-click on the star, ignore the fact that the selected count doesn’t update, and refresh the page to see the proper results. If I click the star twice so that it appears to be unselected, the count at the top decrements, but when I refresh, the count reverts and the badge is still selected.

In essence, clicking the star once doesn’t seem to refresh the state of the page while clicking twice does. However, correct underlying functionality is only had from a single click and a manual refresh.

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [July 14, 2021, 4:52pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/15 "2021-07-14T16:52:20Z")

</div>

> [@griffin](#):
>
> I do have to remember to only single-click on the star, ignore the fact that the selected count doesn’t update, and refresh the page to see the proper results. If I click the star twice so that it appears to be unselected, the count at the top decrements, but when I refresh, the count reverts and the badge is still selected.

Oh, I’m able to reproduce the problem. Now it is some client side quirk. Jonathan, thanks for reporting! I’ll take care of this and post updates on this topic.

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [July 14, 2021, 5:30pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/17 "2021-07-14T17:30:23Z")

</div>

Hmm, wait, we haven’t merged it yet. I’m going to merge it tomorrow. @griffin my PR should fix the behaviour that you’re describing. I’ll double-check it anyway.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 14, 2021, 5:54pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/18 "2021-07-14T17:54:16Z")

</div>

> [@andrei](#):
>
> Hmm, wait, we haven’t merged it yet.

Interesting…

So it may be that the functionality was there, but that the appearance was deceptive. Either way, hopefully your PR will squash this bug once and for all! 🙂

🐛 🔨

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [July 15, 2021, 10:56am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/19 "2021-07-15T10:56:45Z")

</div>

Ok, it’s merged now, after updating everything should work fine.

---

<div class="post-metadata">

### Author: ![griffin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/griffin/32/223139_2.png) [@griffin](https://meta.discourse.org/u/griffin)
#### Post date: [July 15, 2021, 5:24pm UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/23 "2021-07-15T17:24:02Z")

</div>

I can confirm that this bug is thoroughly smashed! 😃

This topic can be closed.

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [July 26, 2021, 8:00am UTC](https://meta.discourse.org/t/failed-error-selecting-favorite-badges/195657/24 "2021-07-26T08:00:06Z")

</div>

This topic was automatically closed after 10 days. New replies are no longer allowed.
