This commit is contained in:
binwiederhier 2023-02-11 20:38:13 -05:00
parent e5a33523d9
commit 4cbf1f5371
3 changed files with 7 additions and 11 deletions

View file

@ -33,13 +33,10 @@ const UpgradeDialog = (props) => {
const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
useEffect(() => {
(async () => {
try {
setTiers(await accountApi.billingTiers());
} catch (e) {
setError(e.message);
}
})();
const fetchTiers = async () => {
setTiers(await accountApi.billingTiers());
}
fetchTiers(); // Dangle
}, []);
if (!tiers) {