My site is throwing a warning error in the console on product and cart pages:
“Each dictionary in the list “icons” should contain a non-empty UTF8 string field “type”.”
I’ve tracked this error down to a problem in a shopify file that I cannot change:
https://cdn.shopify.com/shopifycloud/payment-sheet/assets/latest/d0aa2ee9644120ba35fc.1.en.js
In particular these lines where “icons” is referenced.
{name:“ShopPay”,type:“icon”,icons:{ratio:82/24,dark:“payments-shopify-pay-dark”,light:“payments-shopify-pay-light”},classNames:{dark:“shopifyPayDark”,light:“shopifyPayLight”}},a={name:“PayPal”,type:“icon”,icons:{ratio:67/19,dark:“payments-paypal”,light:“payments-paypal”},classNames:{dark:“paypalDark”,light:“paypalLight”}},o={name:“GooglePay”,type:“icon”,classNames:{dark:“googlePayDark”,light:“googlePayLight”},icons:{ratio:43/19,dark:“payments-google-pay-dark”,light:“payments-google-pay-light”}},i={name:“DummyInstrument”,type:“text”,classNames:{dark:“checkoutDark”,light:“checkoutLight”},copy:{buy_now:“Dummy Instrument”,sheet:“Dummy Instrument”,web_checkout:“Dummy Instrument”,web_checkout_accelerated:“Dummy Instrument”,cart_page:“Dummy Instrument”,cart_page_accelerated:“Dummy Instrument”,cart_ajax:“Dummy Instrument”,cart_ajax_accelerated:“Dummy Instrument”}},s={AmazonPay:{name:“Amazon Pay”,type:“icon”,icons:{ratio:5.1,dark:“payments-amazon-pay”,light:“payments-amazon-pay”},classNames:{dark:“amazonPayDark”,light:“amazonPayLight”}},ApplePay:{name:“Apple Pay”,type:“icon”,icons:{ratio:43/19,dark:“payments-apple-pay-dark”,light:"payments-apple-pay-
I believe this problem will occur on any site when the quick checkout buttons are enabled.
Anyone else have this problem?