fix: update mismatched keys to show xp animation on collection (#3577)

This commit is contained in:
avashilling 2025-07-29 09:11:39 -04:00 committed by GitHub
parent fdf6659be4
commit 15d3eb9cd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -549,7 +549,7 @@ class MessageOverlayController extends State<MessageSelectionOverlay>
xp: ConstructUseTypeEnum.click.pointValue,
),
],
targetID: token.text.uniqueKey,
targetID: "word-zoom-card-${selectedToken!.text.uniqueKey}",
),
);

View file

@ -43,7 +43,7 @@ class WordZoomWidget extends StatelessWidget {
true &&
overlayController.hideWordCardContent;
String get transformTargetId => "newer-word-overlay-${token.text.uniqueKey}";
String get transformTargetId => "word-zoom-card-${token.text.uniqueKey}";
LayerLink get layerLink =>
MatrixState.pAnyState.layerLinkAndKey(transformTargetId).link;