Skip to content
Snippets Groups Projects
Commit 7a669dfb authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Fix silent not updating data after moving to cart screen

parent 8691c4ee
No related branches found
No related tags found
3 merge requests!186V1.27.5.0 release,!174RELEASE: 1,!117Improve of testnet_node script with profile data pregeneration
......@@ -74,10 +74,10 @@ class CartOverview(CliveWidget):
def on_mount(self) -> None:
self.watch(self.app.world, "profile_data", callback=self.__sync_cart_items)
def __sync_cart_items(self, _: ProfileData) -> None:
self.__cart_items_container.query(CartItem).remove()
async def __sync_cart_items(self, _: ProfileData) -> None:
await self.__cart_items_container.query(CartItem).remove()
new_cart_items = self.__create_cart_items()
self.__cart_items_container.mount(*new_cart_items)
await self.__cart_items_container.mount(*new_cart_items)
@staticmethod
def __get_rc(profile_data: ProfileData) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment