feat: only update view count when we validate the password if it's set

This commit is contained in:
lemmyMwaura
2024-08-07 16:52:11 +03:00
parent f12d4d80c6
commit 69fe5bf71d
2 changed files with 67 additions and 36 deletions
@@ -90,9 +90,8 @@ export const PasswordContainer = ({ secretId, hashedHex, handleSecret }: Props)
)}
/>
</form>
<Button
className="mt-4 w-full bg-mineshaft-700 py-3 text-bunker-200"
className="w-full bg-mineshaft-700 py-3 text-bunker-200"
colorSchema="primary"
variant="outline_bg"
size="sm"