diff --git a/frontend/src/app/share/[id]/page.tsx b/frontend/src/app/share/[id]/page.tsx index ea5763f..80160e4 100644 --- a/frontend/src/app/share/[id]/page.tsx +++ b/frontend/src/app/share/[id]/page.tsx @@ -155,12 +155,11 @@ export default function PublicSharePage({ params }: { params: Promise<{ id: stri {showPassword ? : } - {passwordError && ( + {lockoutTime > 0 ? ( +

Too many incorrect attempts, try again in {lockoutTime} seconds

+ ) : passwordError ? (

{passwordError}

- )} - {lockoutTime > 0 && ( -

Locked out. Try again in {lockoutTime}s.

- )} + ) : null}