We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e945d1 commit 8a3ba5fCopy full SHA for 8a3ba5f
src/components/LockScreen/index.js
@@ -27,7 +27,11 @@ const LockScreen = () => {
27
}, [])
28
29
useEffect(() => {
30
- getB64File(getFromStorage('customLockBg')).then((b64Img) => !bgImg && setBgImg(b64Img))
+ const bgPath = getFromStorage('customLockBg')
31
+
32
+ if (bgPath) {
33
+ getB64File(bgPath).then((b64Img) => !bgImg && setBgImg(b64Img))
34
+ }
35
}, [bgImg])
36
37
const unlock = (event) => {
0 commit comments