Skip to content

Commit

Permalink
fix a bug for transaction display (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
eve-git authored Jan 16, 2024
1 parent b02c608 commit f8cf4af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/namex/VERSION.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.1.48'
__version__ = '1.1.49'

4 changes: 2 additions & 2 deletions api/namex/resources/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def get(nr):
user_action = "Undo Decision"
if e_dict["action"] == "nro_update" and (e_dict["stateCd"] == State.APPROVED or e_dict["stateCd"] == State.REJECTED or e_dict["stateCd"] == State.CONDITIONAL):
user_action = "Updated NRO"
if e_dict["action"] == "post" and ((json_data := json.loads(e_dict["jsonData"])) and "comment" in json_data):
if e_dict["action"] == "post" and (event_json_data and "comment" in event_json_data):
user_action = "Staff Comment"
nr_event_info['comment'] = json_data["comment"]
nr_event_info['comment'] = event_json_data["comment"]
if e_dict["stateCd"] == State.CANCELLED and (e_dict["action"] == "post" or e_dict["action"] == "update_from_nro"):
user_action = "Cancelled in NRO"
if e_dict["stateCd"] == State.CANCELLED and (e_dict["action"] == "patch" or e_dict["action"] == "put"):
Expand Down

0 comments on commit f8cf4af

Please sign in to comment.