The problem is always going to be, that one person’s definition of “senseless war” is another person’s “just war”. If enough people think a war is just, then the tolerance of the public to sacrifice towards the prosecution therein, will go up.
Ukrainians are paying extreme economic costs — and in blood — to sustain their war against the Russians. And support for the war in Ukraine is >90%.
Humans are not purely driven by narrow economic incentives.