mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Fix scaled proportions event not triggering
This commit is contained in:
@@ -326,6 +326,14 @@ export function ScaledProportionsPage() {
|
||||
}
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (lastUsed !== null) {
|
||||
Sentry.metrics.count('scaled_proportions', 1, {
|
||||
attributes: { calibration: lastUsed },
|
||||
});
|
||||
}
|
||||
}, [lastUsed]);
|
||||
|
||||
useEffect(() => {
|
||||
sendRPCPacket(
|
||||
RpcMessage.SkeletonConfigRequest,
|
||||
@@ -334,11 +342,6 @@ export function ScaledProportionsPage() {
|
||||
|
||||
return () => {
|
||||
cancel();
|
||||
if (lastUsed !== null) {
|
||||
Sentry.metrics.count('scaled_proportions', 1, {
|
||||
attributes: { calibration: lastUsed },
|
||||
});
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user