Skip to content

Commit 6f5a5c4

Browse files
committed
fix color.isValid check
1 parent 5a496e2 commit 6f5a5c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nativescript-slides.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ export class SlideContainer extends AbsoluteLayout {
221221
if (this.pageIndicators) {
222222

223223
let iColor = this.indicatorsColor;
224-
//check if valid
225-
if (Color.isValid()) {
226-
iColor = iColor;
227-
} else {
224+
//check if invalid and set to white (#fff)
225+
if (!Color.isValid(iColor)) {
228226
iColor = '#fff';
229227
}
230228

0 commit comments

Comments
 (0)