frontend fix: clear cache when upgrading/downgrading access

This commit is contained in:
martin-mfg
2026-01-05 12:51:28 +01:00
parent 2031c8f9d0
commit b9e86b42d1
@@ -29,6 +29,10 @@ const SvgInline = (props) => {
setShouldMock(stage === 0 || !isAuthenticated);
}, [isAuthenticated, props.stage]);
useEffect(async () => {
await axios.storage.clear();
}, [userToken]);
useEffect(() => {
const loadSvg = async () => {
process.env.PAT_1 = userToken;