bcgov / bcgov/entity

Edit UI: Incorrect “Changed” label displayed when address has not changed

Open
#25,556 1 comment 0 reactions 0 assignees View on GitHub
bug Entities Team Priority3
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

#### Description:
In the Edit UI, the "CHANGED" label incorrectly appears for address fields. This occurs when editing the `Registered Office` section during Conversion to Full Restoration and Limited Restoration Extension processes.

#### Examples:

Conversion to Full Restoration:
https://test.edit.business.bcregistry.gov.bc.ca/BC1198844/limitedRestorationToFull?accountid=1999&restoration-id=409750

Limited Restoration Extension:
https://test.edit.business.bcregistry.gov.bc.ca/BC1198846/limitedRestorationExtension?accountid=1999&restoration-id=409738

image.png

#### Steps to Reproduce:
1. Navigate to Your Company section in Edit UI
2. Select Edit for Registered Office
3. Without modifying any address information, click Done
4. Click Save and Resume Later
5. Return to the draft filing from the TODO list
6. Found the Changed labels appear
7. Click the Undo button
8. Found no changes to the addresses

#### Current Behavior:
The "CHANGED" label appears on address fields even if we don't change the addresses after we click the `Done` button.
After we clicked the `Undo` button, we found the address information remained identical to the original.
image.png

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the Edit UI's Registered Office flow for Conversion to Full Restoration and Limited Restoration Extension, following the listed steps. Trace how the address state is compared when returning to a saved draft; done means unchanged addresses do not receive CHANGED labels and Undo leaves them identical to the original.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.