woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

Order List: convert wrong type (blank string) to correct type (empty array) for taxes

Open mindgraffiti opened this issue 5 years ago • 1 comments

p99K0U-24e-p2

Incorrect type, blank string, occasionally returns from an API response. In the Order List Mapper, check for a blank string and convert it to an empty array.

mindgraffiti avatar Nov 19 '19 21:11 mindgraffiti

Somewhat related to https://github.com/woocommerce/woocommerce-ios/issues/1201, where we were only expecting Strings from a mixed-type endpoint, causing the data to not decode properly.

iamgabrielma avatar Jun 23 '22 07:06 iamgabrielma