Show login dialog when favoriting without auth
All checks were successful
Build frontend / build (push) Successful in 39s
All checks were successful
Build frontend / build (push) Successful in 39s
This commit is contained in:
@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user