Lesson 10: UI doesnt update after enterRaffle is called in typescript branch #824
Answered
by
buikhacnam
myVpbApp2022
asked this question in
Q&A
-
I follow the code in the typescript branch, and the number of players doesnt update when I hit enterRaffle button. |
Beta Was this translation helpful? Give feedback.
Answered by
buikhacnam
Jul 8, 2022
Replies: 1 comment
-
I made a pull request to fix this. The transaction should be wait fro one block before calling updateUI function: https://github.com/PatrickAlphaC/nextjs-smartcontract-lottery-fcc/pull/7/files |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
myVpbApp2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made a pull request to fix this. The transaction should be wait fro one block before calling updateUI function: https://github.com/PatrickAlphaC/nextjs-smartcontract-lottery-fcc/pull/7/files