fix: don't get backups settings if there is no logged-in user (#842)

* fix: don't get backups settings if there is no logged-in user

* chore: bump snjs version
This commit is contained in:
Vardan Hakobyan
2022-02-02 23:58:58 +04:00
committed by GitHub
parent d17edfc5cf
commit 616b77a5f7
5 changed files with 15 additions and 10 deletions

View File

@@ -38,6 +38,9 @@ export const EmailBackups = observer(({ application }: Props) => {
useState(false);
const loadEmailFrequencySetting = useCallback(async () => {
if (!application.getUser()) {
return;
}
setIsLoading(true);
try {