Sweden’s first female prime minister, Magdalena Andersson, has resigned from office only hours after being voted in, Sweden’s official Twitter account announced Wednesday. The dramatic move came before Andersson was fully in office as she had not yet had counsel with the King, a spokesperson told CNN. Her resignation follows a budget defeat in parliament Wednesday, Sweden’s Twitter account added, with lawmakers supporting the opposition’s bill.