Skip to content

Commit

Permalink
Update src/views/settings/SettingsSubjects.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: 𝕂𝕪𝕝𝕚𝕒𝕟 <[email protected]>
  • Loading branch information
codeuriii and Kgeek33 authored Dec 4, 2024
1 parent db25895 commit 6d1690a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/settings/SettingsSubjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,12 @@ const SettingsSubjects: Screen<"SettingsSubjects"> = ({ navigation }) => {
onPress={() => {
if (/^#[0-9A-F]{6}$/i.test(customColor)) {
handleSubjectColorChange(selectedSubject[0], customColor);
setCustomColor("");
setSelectedSubject((prev) => {
if (prev) {
prev[1].color = customColor;
}
return prev;
});
}
}}
>
Expand Down

0 comments on commit 6d1690a

Please sign in to comment.