Skip to content

Commit

Permalink
Fix the button issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
saakshiraut28 committed Aug 18, 2023
1 parent 55675ed commit aec99b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/gradient-background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ export function gradientBackgroundGenerator(
type: 'newResults' | 'oldResults' | null
) {
if (type === null) return;
// Show error when the colors are not entered.
var element = gradientBackgroundInputs[0];
var value = element.value; // Get the value of the input field
var value = element.value;
if (value.length < 3) {
gradientBackgroundInputs.forEach((ele) => {
getResultBtn.style.backgroundColor = 'grey';
Expand Down

0 comments on commit aec99b6

Please sign in to comment.