Merge branch 'main' into fix/clean-test-warnings

This commit is contained in:
Simone Taeggi 2022-10-18 10:30:11 +02:00
commit a0a6f03788
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ function App() {
try {
const deviceId = await getUID();
fetch('https://analytics.strapi.io/track', {
await fetch('https://analytics.strapi.io/track', {
method: 'POST',
body: JSON.stringify({
event: 'didInitializeAdministration',

View File

@ -8,10 +8,10 @@ const useTracking = () => {
const { uuid, telemetryProperties } = useContext(TrackingContext);
const appInfo = useAppInfos();
trackRef.current = (event, properties) => {
trackRef.current = async (event, properties) => {
if (uuid) {
try {
axios.post('https://analytics.strapi.io/track', {
await axios.post('https://analytics.strapi.io/track', {
event,
properties: {
...telemetryProperties,