Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellevissa committed Jun 17, 2024
1 parent 25f0799 commit d378d3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/http/index.tsx

This file was deleted.

14 changes: 12 additions & 2 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,22 @@ export const Home = () => {
console.log(transactionReceiverData);

useEffect(() => {
if (userError || accountError || transactionSenderError) {
if (
userError ||
accountError ||
transactionSenderError ||
transactionReceiverError
) {
console.error("Erro ao buscar dados:", userError || accountError);
}
}, [userError, accountError]);

if (userLoading || accountLoading || transactionSenderLoading) {
if (
userLoading ||
accountLoading ||
transactionSenderLoading ||
transactionReceiverLoading
) {
return <div>Carregando...</div>;
}

Expand Down

0 comments on commit d378d3a

Please sign in to comment.