Pricing Blog

Local storage and updating variable - returns undefined

  • mesmoiron-1313123102300835910

    mesmoiron

    7 months ago

    Hello All,

    I am testing the update of a profile field. I have bind it to its variable. When I type in the input field, the local storage value is displayed in a span for testing. However when I click on the button; I get an undefined and it clears the local storage somehow.
    1313123103596871721-Firefox_Screenshot_2024-12-02T12-38-05.445Z.png
    1313123104507035669-Firefox_Screenshot_2024-12-02T12-39-34.156Z.png
    1313123104125358090-Firefox_Screenshot_2024-12-02T12-39-07.509Z.png
    1313123102888165386-Firefox_Screenshot_2024-12-02T12-36-48.554Z.png