Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: manage profile page button is disabled while adding new tags (#1…
Browse files Browse the repository at this point in the history
…0315)

* fix: adding tag will make the button disabled

* updated refactor profile page
  • Loading branch information
sital002 authored Jun 8, 2024
1 parent 5f2143e commit 3596707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/account/manage/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ export default function Profile({ BASE_URL, profile, fileExists }) {

const handleSubmit = async (e) => {
e.preventDefault();
setIsDisabled(true);
if (document.activeElement === tagInputRef.current) {
return;
}
setIsDisabled(true);
const res = await fetch(`${BASE_URL}/api/account/manage/profile`, {
method: "PUT",
headers: {
Expand Down

0 comments on commit 3596707

Please sign in to comment.