From c37a2036a4ec3c7334a83156af6b34c534b30e8e Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao <_accounts@nareshkumarrao.com> Date: Thu, 5 Aug 2021 21:01:58 +0200 Subject: [PATCH] toast fix --- src/screens/HomeScreen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens/HomeScreen.js b/src/screens/HomeScreen.js index 2d29f4a..1626813 100644 --- a/src/screens/HomeScreen.js +++ b/src/screens/HomeScreen.js @@ -78,10 +78,11 @@ function ConfirmCOVIDPositiveAlertDialog() { .then(res => { if(res.data.covidPositive){ dispatch(setCovidPositive()); + toast.closeAll(); toast({ title: "Confirmed!", status: 'info', - duration: 500, + duration: 2000, }); }else{ showErrorToast();