If the war going on, Ukraine will be destroyed, it doesn't matter anymore. If they can reach a peace deal, Ukraine will need lots lots lots of money to rebuild, and you know who is in the business of rebuilding. In fact, I have seen Ukrainians who complained about the US/NATO abandoning them, I doubt they really care about China at this point.