mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-15 12:33:23 +00:00
refactor: Update to use poll() instead of pollOffers()
This commit is contained in:
@@ -232,7 +232,7 @@ export default function App() {
|
|||||||
|
|
||||||
const poll = async () => {
|
const poll = async () => {
|
||||||
try {
|
try {
|
||||||
const result = await rondevu.pollOffers(lastAnswerTimestamp);
|
const result = await rondevu.poll(lastAnswerTimestamp);
|
||||||
|
|
||||||
// Process answers
|
// Process answers
|
||||||
if (result.answers.length > 0) {
|
if (result.answers.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user