If you are baking a particularily hot day, you may want to store the frosting in the fridge until you are ready to pipe. If the frosting gets to hard, just allow it to sit in room temperature. I find it´s easier to add the frosting into the piping bag just before frosting the cupcakes in case the frosting is too cold (hard) or warm (runny).