In fiction there's an idea known as 'plot armor'. In essence, it's the idea that causality and realism are suspended for some reasons related to the plot.
Your scenario here is plot armor.
Sure, if we pretend that gold stops having ANY use outside of being pretty, then when it stops being considered pretty it's value will go to 0.
But the fact is, gold has a myriad of uses besides being pretty and those uses give it an inherent value.
And when you go to sell it, others' use of it is what sets the sell value, not your personal use of it. It doesn't matter that I'm not personally using it for conductivity if the person I'm selling it to is (or someone downstream of them is).
IOW, stop posting fiction.