The Australian economy grew by 0.4 per cent through the June quarter as consumers spent more on electric vehicles as they deal with the fallout from the war against Iran.