Show login dialog when favoriting without auth
All checks were successful
Build frontend / build (push) Successful in 39s

This commit is contained in:
Claw AI
2026-03-30 18:34:19 +00:00
parent 2c04cd751f
commit 9f6a730a94
2 changed files with 35 additions and 4 deletions

View File

@ -422,7 +422,7 @@ export default function PropertyDetailsPage() {
<div className="flex gap-2">
<button
onClick={async () => {
if (!AuthService.isAuthenticated()) { toast.error('سجل الدخول أولاً'); return; }
if (!AuthService.isAuthenticated()) { setShowLoginDialog(true); return; }
const propId = property?._raw?.id || parseInt(params.id);
setFavLoading(true);
if (isFavorite(propId)) {