Skip to content

Commit

Permalink
add curr_cbs_location_text
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed Apr 25, 2024
1 parent a6059d3 commit 369caf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/organisms/LocationApproveWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const LocationApprove: FC<IProps> = ({ isOpen, onClose, news, newFlashTitle }) =
const [locationChanged, setLocationChanged] = useState(false);
const [newStreetLoc, setNewStreetLoc] = useState<IStreetData|null>(null);
const [newGpsLoc, setNewGpsLoc] = useState<IGpsData|null>(null);
const [locationToDisplay, setLocationToDisplay] = useState(news.location);
const [locationToDisplay, setLocationToDisplay] = useState(news.curr_cbs_location_text);
// Unauthorized user shouldn't be able to open the window in the first place
const userInfo = userStore.userInfo && userStore.userInfo.data && userStore.userInfo.data.firstName ?
userStore.userInfo.data.firstName.concat(userStore.userInfo.data.lastName) : null;
Expand Down
1 change: 1 addition & 0 deletions src/models/NewFlash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface INewsFlash {
display_source: string;
newsflash_location_qualification: string;
location: string;
curr_cbs_location_text: string;
title: string;
source: string;
critical?: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/services/news.data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const errorNews: INewsFlash = {
display_source: '',
newsflash_location_qualification : '',
location: '',
curr_cbs_location_text: '',
};

const NEWS_FLASH_API: string = '/api/news-flash';
Expand Down

0 comments on commit 369caf5

Please sign in to comment.