Project

General

Profile

Actions

Bug #1091

closed

RNA-391(Always submit city/state/zip from Add Post (don’t null them out))

Added by Talha Sajjad 22 days ago. Updated 20 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
10/05/2026
Due date:
% Done:

0%

Estimated time:

Description

On create listing (AddPost), city, state, and zip are only included in the submit payload when selectedListType === "event" && showLocation. For every other case the app sends city: null, state: null, zipCode: null even if the user filled or changed those fields.

The form always shows and prefills city/state/zip from the user profile, and the API appears to fall back to profile location when those fields are omitted. That makes defaults look “preserved,” but listing-specific edits are discarded on non-event (and non-showLocation) posts.

Hide Address must continue to clear only the street address (""). City/state/zip must never be cleared by that toggle or by the non-event payload branch.
Current behavior

Location UI (state, city, zip, address) is always visible on Add Post.

Submit uses:

    Event + showLocation: send selected city/state/zip (+ address).

    Otherwise: send city/state/zip as null; address still sent (including "" when Hide Address is on).

Result: user changes to city/state/zip on for_sale (etc.) are not applied; listing keeps profile/server defaults.

Expected behavior

Always submit the user’s current city, state, and zip from the form on create (same as edit already does).

Hide Address / empty address only affects address (send "" when hidden or cleared).

Do not null city/state/zip based on listing type or showLocation.

Events: address remains required; no Hide Address on events (existing rules unchanged).

Phone: still optional; Hide Phone still clears phone via "".
Actions #1

Updated by Mubashir Siraj 22 days ago

  • Status changed from New to In Progress
Actions #2

Updated by Mubashir Siraj 22 days ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Mubashir Siraj to Talha Sajjad
Actions #3

Updated by Talha Sajjad 20 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF