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

Commit 3e70782

Browse files
authored
Update swing-stack.component.ts
Fixed the void return. I think it's easier to get the card this way, instead of comparing elements.
1 parent 5359ea8 commit 3e70782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/ionic-swing/components/swing-stack.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class SwingStackComponent implements AfterContentInit {
5353
addCard(card: SwingCardComponent) {
5454
this.cards.push(card);
5555
if (this.stack) {
56-
this.stack.createCard(card.getNativeElement());
56+
return this.stack.createCard(card.getNativeElement());
5757
}
5858
}
5959

0 commit comments

Comments
 (0)