Skip to content

Commit

Permalink
fix(error logs): retrait du log dans sentry des erreurs d'accès au lo…
Browse files Browse the repository at this point in the history
…calStorage
  • Loading branch information
carolineBda committed Oct 1, 2024
1 parent 9d8bcb7 commit d18ba03
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/code-du-travail-frontend/src/lib/useLocalStorage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useCallback, useEffect, useState } from "react";
import { Agreement, STORAGE_KEY_AGREEMENT } from "../outils/types";
import { captureException } from "@sentry/nextjs";

export function useLocalStorageForAgreementOnPageLoad(): [
Agreement | any,
Expand Down Expand Up @@ -54,7 +53,6 @@ export const saveAgreementToLocalStorage = (agreement?: Agreement | null) => {
}
} catch (e) {
console.error(e);
captureException(e);
}
};

Expand All @@ -66,7 +64,6 @@ export const getAgreementFromLocalStorage = (): Agreement | undefined => {
}
} catch (e) {
console.error(e);
captureException(e);
}
};

Expand All @@ -77,6 +74,5 @@ export const removeAgreementFromLocalStorage = () => {
}
} catch (e) {
console.error(e);
captureException(e);
}
};

0 comments on commit d18ba03

Please sign in to comment.