Add data (connecting to backend) in react course


Dear All
I hope all is well
in the section of connecting to backend via a fake server address I face a problem
1-we define the user
2-we define a button and function to add data
3-we write the function code
i have problem in concept of part 3:
in line 22 we define original users a users
in line 24 we update users(which means the original users will be updated too, doesn’t it?)
these lines related to updating the ul part, now in line 30 we say that if there is a problem on updating the server data, the users will be equal to original users,
when we run the code and face problem on updating the serve and the original users come to be used, it return un -updated users, how does it come?