Browse Source

toast fix

pull/8/head
Nareshkumar Rao 3 years ago
parent
commit
c37a2036a4
  1. 3
      src/screens/HomeScreen.js

3
src/screens/HomeScreen.js

@ -78,10 +78,11 @@ function ConfirmCOVIDPositiveAlertDialog() {
.then(res => { .then(res => {
if(res.data.covidPositive){ if(res.data.covidPositive){
dispatch(setCovidPositive()); dispatch(setCovidPositive());
toast.closeAll();
toast({ toast({
title: "Confirmed!", title: "Confirmed!",
status: 'info', status: 'info',
duration: 500,
duration: 2000,
}); });
}else{ }else{
showErrorToast(); showErrorToast();

Loading…
Cancel
Save