K
K
Kirill19732021-08-15 22:20:34
React
Kirill1973, 2021-08-15 22:20:34

How to disable the "Save" button if the information in the profile matches the current user data?

Hello! At the moment I am studying programming and in one of the cases I encountered a situation that I can’t solve on my own, namely, deactivate the "Save" button if information (name and email address) of the current (already saved) user is entered in the profile. I managed to deactivate the button when loading the profile, make it active only when filling in the profile data, and deactivate it again after saving the data. Can you please tell me how to make the button inactive when entering the data of an already saved user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Masson, 2021-08-18
@pumbasl

Here is the shitty code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question