Skip to content

Commit

Permalink
Trocando o removeItem por clear - Front-end. - 5
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSS187 committed Feb 11, 2023
1 parent 62abc97 commit 6d73539
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions front-end/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState, useEffect, useId, useCallback, useMemo } from "react";
import { useState, useEffect, useId } from "react";
import { isMobile } from "react-device-detect";
import { useScrollTop } from "./hook/useScrollTop";
import { ToastContainer, toast } from "react-toastify";
import { infoApp } from "./data/GeneralInfo";
Expand Down Expand Up @@ -85,7 +86,7 @@ export function App () {
};

//* Notificar sucesso apos o login
if ( success !== null && success === "success" ){
if ( success !== null && success === "success" && !isMobile ){
toast.success("Login successfully.", {
toastId: `${id}:success-s`
});
Expand Down

1 comment on commit 6d73539

@vercel
Copy link

@vercel vercel bot commented on 6d73539 Feb 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.