Swapping and configuring instances via setProperties result in weird results

I have a component which has different variant as well as boolean and text properties, when I set values via API using instance.setProperties and the object passed changes the variant of the instance

Code example

    "Text#48:1": "$20.4",
    "Color": "Black",
    "hasSalesPrice": "True",
    "StrikeThrough Text#48:4": "$68"

the problem is that changing the variant and text properties at the same time doesn’t seem to be working.

any thoughts?

Do you see any errors in the console?