Wasmswap / wasmswap-interface

Apache License 2.0
28 stars 67 forks source link

Protect `useGetTokenDollarValueQuery` in case if token price is `undefined` #252

Closed sashimi36 closed 2 years ago

sashimi36 commented 2 years ago

This is to cover the use case when a pool is not yet created and thereby there's no way to figure out a given token price. The dollar price query relies on token to token price query and this is to protect the query against that use case.

netlify[bot] commented 2 years ago

Deploy Preview for laughing-agnesi-30fb23 ready!

Name Link
Latest commit a4425ee90f658b8dc902c2a230a5a28e0a72b066
Latest deploy log https://app.netlify.com/sites/laughing-agnesi-30fb23/deploys/62ffca6d39fc4100088538e0
Deploy Preview https://deploy-preview-252--laughing-agnesi-30fb23.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.