Experiencing bug on logout-login. Should re-render? Can only create one Element of type

Hi there,

Im experiencing a bug when I elements.create(‘payment’). I need to do this for stripe payments, and noticed if I logout and login - I get an error = Can only create one Element of type Payment

I know this must to with re-rendering the template - as when I refresh it fixes itself. Is there any way I could maybe rerender the template onRendered, or something different maybe?

Thank you