Repair camp but war still ends

Hi I reported this to the support in game but they were not helpful.

During a war it was getting close to the end and my side had only 2 camps left, mine and another. Mine got destroyed. I hit repair and then hit coin to immediately fix.
The war then ended.
I was still charged coins for the repair but the war was over.

So there is a bug/delay between repairing and taking coins before the repair happens.

Support will not refund the coins or offer any other solution.

How can people have faith in the game if this can happen?