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

Commit 3596707

Browse files
authored
fix: manage profile page button is disabled while adding new tags (#10315)
* fix: adding tag will make the button disabled * updated refactor profile page
1 parent 5f2143e commit 3596707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/account/manage/profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ export default function Profile({ BASE_URL, profile, fileExists }) {
9292

9393
const handleSubmit = async (e) => {
9494
e.preventDefault();
95-
setIsDisabled(true);
9695
if (document.activeElement === tagInputRef.current) {
9796
return;
9897
}
98+
setIsDisabled(true);
9999
const res = await fetch(`${BASE_URL}/api/account/manage/profile`, {
100100
method: "PUT",
101101
headers: {

0 commit comments

Comments
 (0)