Closed mentatbot[bot] closed 5 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
dev | ❌ Failed (Inspect) | Jul 1, 2024 9:06pm | ||
docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 1, 2024 9:06pm |
prod | ❌ Failed (Inspect) | Jul 1, 2024 9:06pm |
Oop, mentat bot you have some maturing to do
This update addresses the issue where multiple choice answers were being broadcasted one-by-one, potentially leading to inconsistent states where answer probabilities don't add up to 100%.
Changes include:
broadcastUpdatedAnswers
function inbackend/shared/src/websockets/helpers.ts
to handle broadcasting an array of updated answers.broadcastUpdatedAnswer
function to usebroadcastUpdatedAnswers
.answers-panel.tsx
to subscribe to the newupdated-answers
topic and update the state with the new answers accordingly.This ensures that all updated answers are broadcasted together, maintaining consistency in the bet panel.
Closes #2695