fix: break the loop if it reaches the bottom

This commit is contained in:
kawamataryo
2024-11-17 10:34:03 +09:00
parent 57b68651df
commit acc719b427
+2
View File
@@ -155,6 +155,7 @@ export const useRetrieveBskyUsers = () => {
) { ) {
setIsBottomReached(true); setIsBottomReached(true);
setLoading(false); setLoading(false);
break;
} }
} else { } else {
const documentElement = document.documentElement; const documentElement = document.documentElement;
@@ -164,6 +165,7 @@ export const useRetrieveBskyUsers = () => {
) { ) {
setIsBottomReached(true); setIsBottomReached(true);
setLoading(false); setLoading(false);
break;
} }
} }