diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 102345b2..d7b33709 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,6 +18,10 @@ jobs: contents: write # required to upload release asset packages: write steps: + - name: Get current time + id: current-time + run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT + - name: Check it out uses: actions/checkout@v2 @@ -65,6 +69,7 @@ jobs: type=sha,format=short,event=branch type=semver,pattern={{version}} type=raw,value=latest-ci,enable={{is_default_branch}} + type=raw,value=latest-ci_${{steps.current-time.outputs.unix_time}},enable={{is_default_branch}} - name: Set up Docker Buildx uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 diff --git a/src/ClientContext.tsx b/src/ClientContext.tsx index 3e471eb8..f7ceea9f 100644 --- a/src/ClientContext.tsx +++ b/src/ClientContext.tsx @@ -218,7 +218,7 @@ export const ClientProvider: FC = ({ children }) => { }); } else { clearSession(); - setInitClientState(undefined); + setInitClientState(null); } }, [initClientState?.client] @@ -233,7 +233,7 @@ export const ClientProvider: FC = ({ children }) => { await client.logout(true); await client.clearStores(); clearSession(); - setInitClientState(undefined); + setInitClientState(null); history.push("/"); PosthogAnalytics.instance.setRegistrationType(RegistrationType.Guest); }, [history, initClientState?.client]); diff --git a/src/FullScreenView.tsx b/src/FullScreenView.tsx index 4b9a1e2b..6ac134b8 100644 --- a/src/FullScreenView.tsx +++ b/src/FullScreenView.tsx @@ -73,6 +73,7 @@ export function ErrorView({ error }: ErrorViewProps) { ? error.translatedMessage : error.message}

+ {location.pathname === "/" ? (