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
I'm not sure about the buyer portal react app but this affects checkout. We cannot currently proceed in the default B2B checkout due to all extra fields being required. The isRequired field when false is actually a string 0 which causes a problem as it's a truthy value. I had to add logic to parse this string in a B2B checkout fork to mitigate this.
Even B2B Edition app is affected:
Expected Behavior:
Expecting isRequired to be a falsey value when false. It's not bool false, or even just number 0, but a string 0.
Actual Behavior:
isRequired value when false is a string 0 which is truthy.
Backend Request Information:
GET https://api.bundleb2b.net/api/v2/extra-fields/order/storefront
The text was updated successfully, but these errors were encountered:
Hi @bc-victor, I hope this helps but I put something like this in packages/core/src/app/b3checkout/extrasFiles/utils.ts of the checkout fork we have to handle this for now:
Or if you are referring to Buyer Portal react app, I'm not aware of issues caused by this yet.
Type: (Select one)
Summary:
I'm not sure about the buyer portal react app but this affects checkout. We cannot currently proceed in the default B2B checkout due to all extra fields being required. The
isRequired
field when false is actually a string0
which causes a problem as it's a truthy value. I had to add logic to parse this string in a B2B checkout fork to mitigate this.Even B2B Edition app is affected:
Expected Behavior:
Expecting
isRequired
to be a falsey value when false. It's not boolfalse
, or even just number0
, but a string0
.Actual Behavior:
isRequired
value when false is a string0
which is truthy.Backend Request Information:
The text was updated successfully, but these errors were encountered: