This isn't accurate. The NSDAP did not gain traction in elections until 1929. Although they had been advertising the same selling points for years then: antisemitism, and promising to abandon the treaty of Versailles. But they did not get more than 1% of votes in elections until the world-wide economic breakdown happened in 1929. In the following years, NSDAP results in elections were skyrocketing to more than 30%.
It was the second blow 1929 to the economy of the young german republic, not the first by hyperinflation, that got the Nazis into power.