diff --git a/src/components/Match/AdditionalSuggestions/AdditionalSuggestionsScroll.js b/src/components/Match/AdditionalSuggestions/AdditionalSuggestionsScroll.js index 6d3caeff1..e2651d16c 100644 --- a/src/components/Match/AdditionalSuggestions/AdditionalSuggestionsScroll.js +++ b/src/components/Match/AdditionalSuggestions/AdditionalSuggestionsScroll.js @@ -8,7 +8,7 @@ import SuggestionsResult from "./SuggestionsResult"; const AdditionalSuggestionsScroll = ( { otherSuggestions, - otherSuggestionsLoading, + suggestionsLoading, onSuggestionChosen } ) => { const { t } = useTranslation( ); @@ -41,7 +41,7 @@ const AdditionalSuggestionsScroll = ( { ); }; - if ( !otherSuggestionsLoading && otherSuggestions?.length === 0 ) { + if ( !suggestionsLoading && otherSuggestions?.length === 0 ) { return null; } @@ -50,7 +50,7 @@ const AdditionalSuggestionsScroll = ( { return ( {t( "It-might-also-be" )} - {!otherSuggestionsLoading + {!suggestionsLoading ? ( void, topSuggestion: Object, otherSuggestions: Array, - otherSuggestionsLoading: boolean, + suggestionsLoading: boolean, onSuggestionChosen: ( ) => void } @@ -36,7 +38,7 @@ const Match = ( { handleLocationPickerPressed, topSuggestion, otherSuggestions, - otherSuggestionsLoading, + suggestionsLoading, onSuggestionChosen }: Props ) => { const { t } = useTranslation( ); @@ -50,7 +52,13 @@ const Match = ( { - + { + suggestionsLoading + ? ( + + ) + : + } {!latitude && (