You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a "how to" question? For questions on how to use the SDK, implement features or other related questions, please use our forums.
Is this something you can debug and fix? Create a pull request and contribute! Bug fixes and documentation fixes are welcome. You can read our contribution guidelines for more details.
Bug details
Describe the bug
ShopifyBuy.MoneyV2 interface declares amount as number, but in reality, a string is found on that field.
Bug details
Describe the bug
ShopifyBuy.MoneyV2
interface declaresamount
asnumber
, but in reality, a string is found on that field.To Reproduce
You can fetch a product using
client.product.fetch
, thenconsole.log(typeof product?.variants[0]?.price.amount
)Please include code samples:
The function I'm using to fetch a product:
How I'm using the value:
formatMonetaryAmount
:Expected behavior
I expect the
amount
field to be of typenumber
Environment
^2.21.1
^2.17.4
Bug Report Checklist
The text was updated successfully, but these errors were encountered: