Skip to content

Commit abd3e35

Browse files
committed
Fix shareZone not hiding card
1 parent fdd1dc9 commit abd3e35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frontend-vue/src/components/ar-component/ArComponent.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ props.conService.onConnection(() => {
109109
foundCard.showCardImage();
110110
card.turnCardOnBack();
111111
} else if (props.cardService.markerMapContainsId(foundCard.id)) {
112-
if (
113-
shareZone.cardInZone(foundCard) &&
114-
foundCard != shareZone.lastFoundCard
115-
) {
116-
shareZone.setLastFoundCard(foundCard);
117-
props.cardService.shareLocal(foundCard.id);
112+
if (shareZone.cardInZone(foundCard)) {
113+
foundCard.hideCardImage();
114+
if (foundCard != shareZone.lastFoundCard) {
115+
shareZone.setLastFoundCard(foundCard);
116+
props.cardService.shareLocal(foundCard.id);
117+
}
118118
}
119119
}
120120

0 commit comments

Comments
 (0)