Skip to content

Commit

Permalink
ensure it doesn't prompt on opening of page
Browse files Browse the repository at this point in the history
  • Loading branch information
kea-roy committed Nov 11, 2024
1 parent 72b8c13 commit 33769be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/ApartmentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const ApartmentPage = ({ user, setUser }: Props): ReactElement => {

// Fetch the reviews that the user has liked and set the liked reviews and like statuses.
useEffect(() => {
getUser(true).then((user) => {
getUser(false).then((user) => {
if (user) {
user.getIdToken(true).then((token) => {
get<ReviewWithId[]>(
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/LandlordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const LandlordPage = ({ user, setUser }: Props): ReactElement => {

// Fetch the reviews that the user has liked and set the liked reviews and like statuses.
useEffect(() => {
getUser(true).then((user) => {
getUser(false).then((user) => {
if (user) {
user.getIdToken(true).then((token) => {
get<ReviewWithId[]>(
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const ProfilePage = ({ user, setUser }: Props): ReactElement => {

// Fetch the reviews that the user has liked and set the liked reviews and like statuses.
useEffect(() => {
getUser(true).then((user) => {
getUser(false).then((user) => {
if (user) {
user.getIdToken(true).then((token) => {
get<ReviewWithId[]>(
Expand Down

0 comments on commit 33769be

Please sign in to comment.