I have a simple react, typescript form where I'm trying to pass a value to localstorage
I'm getting the error
Argument of type 'string | null' is not assignable to parameter of type 'string'.
Type 'null' is not assignable to type 'string'.
Not sure how to fox this error, can anyone help