medusa
medusa copied to clipboard
Variant Decimal Price: The value must be a whole number -v2.0.1
Bug report
Describe the bug
When a user adds variant decimal prices (10.22) on variant section an error occurs: The value must be a whole number
System information
Medusa version (including plugins): 2.0.1 with Redis caching, Redis event bus and S3 file storage plugins Node.js version: v20.16.0 Database: Postgres 15.7 Operating system: MacOS Sonoma 14.5 Browser (if relevant): Chrome Version 129.0.6668.101 (Official Build) (arm64)
Steps to reproduce the behavior
A user
- navigates to products section
- clicks on create
- fills details, organize section, variants (title, sku ...)
- adds prices to the variant
- clicks publish
- Price: 10.22 erros occurs : The value must be a whole number
- Price: 10.00 works well no issues and product is created successfully, edit again 10.22 product is updated successfully
Expected behavior
Price should be added normally decimal or not 10.00 or 10.22 should be successful